mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
dtc: Use stdint.h types throughout dtc
Currently, dtc defines Linux-like names for various fixed-size integer types. There's no good reason to do this; even Linux itself doesn't use these names for externally visible things any more. This patch replaces these with the C99 standardized type names from stdint.h. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
f8e52fe6d8
commit
53359016ca
5 changed files with 28 additions and 31 deletions
4
data.c
4
data.c
|
@ -262,9 +262,9 @@ struct data data_append_re(struct data d, const struct fdt_reserve_entry *re)
|
|||
return data_append_data(d, &bere, sizeof(bere));
|
||||
}
|
||||
|
||||
struct data data_append_addr(struct data d, u64 addr)
|
||||
struct data data_append_addr(struct data d, uint64_t addr)
|
||||
{
|
||||
u64 beaddr = cpu_to_be64(addr);
|
||||
uint64_t beaddr = cpu_to_be64(addr);
|
||||
|
||||
return data_append_data(d, &beaddr, sizeof(beaddr));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue