diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-08-14 09:38:05 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-08-14 09:38:05 +0200 |
commit | e8455cb4e7f735ff428dceec90600d10c949c40e (patch) | |
tree | 3f27e1a9e41a10cd640b8b7dab33cda84c322a49 /package/cfgfs/src/pack.h | |
parent | 96ff8e8c9f9207c377cc70aec47d7ee7a9881afe (diff) | |
parent | 5a83e625749348cfb67e8cc2808e9016ccae98d5 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/cfgfs/src/pack.h')
-rw-r--r-- | package/cfgfs/src/pack.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/package/cfgfs/src/pack.h b/package/cfgfs/src/pack.h index 3b6e518fd..f81584b48 100644 --- a/package/cfgfs/src/pack.h +++ b/package/cfgfs/src/pack.h @@ -51,16 +51,16 @@ typedef struct FTSF_ENTRY ftsf_entry; } while (0) #define LOADW(x) __extension__({ \ - uint8_t *lwbf = (uint8_t *)(x); \ - uint32_t res = 0; \ + u_int8_t *lwbf = (u_int8_t *)(x); \ + u_int32_t res = 0; \ res = (res << 8) | lwbf[1]; \ res = (res << 8) | lwbf[0]; \ res; \ }) #define LOADT(x) __extension__({ \ - uint8_t *lwbf = (uint8_t *)(x); \ - uint32_t res = 0; \ + u_int8_t *lwbf = (u_int8_t *)(x); \ + u_int32_t res = 0; \ res = (res << 8) | lwbf[2]; \ res = (res << 8) | lwbf[1]; \ res = (res << 8) | lwbf[0]; \ @@ -68,8 +68,8 @@ typedef struct FTSF_ENTRY ftsf_entry; }) #define LOADD(x) __extension__({ \ - uint8_t *lwbf = (uint8_t *)(x); \ - uint32_t res = 0; \ + u_int8_t *lwbf = (u_int8_t *)(x); \ + u_int32_t res = 0; \ res = (res << 8) | lwbf[3]; \ res = (res << 8) | lwbf[2]; \ res = (res << 8) | lwbf[1]; \ @@ -80,7 +80,7 @@ typedef struct FTSF_ENTRY ftsf_entry; char *ft_pack(ftsf_entry *); char *ft_packm(void); -char *mkheader(char *, size_t, uint32_t, uint32_t, uint8_t); +char *mkheader(char *, size_t, u_int32_t, u_int32_t, u_int8_t); char *mktrailer(char *, size_t); void ft_dump(char *); |