diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-01-30 22:54:20 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-01-30 22:54:20 +0000 |
commit | dfcb5b041242d08944d3c34eef36dfff1a9177c3 (patch) | |
tree | 618dfd4c93ffc48caf873c711052f793a3c022b0 | |
parent | 0f56de665c12763d74f402fa5ac6edd95202caaa (diff) | |
download | busybox-w32-dfcb5b041242d08944d3c34eef36dfff1a9177c3.tar.gz busybox-w32-dfcb5b041242d08944d3c34eef36dfff1a9177c3.tar.bz2 busybox-w32-dfcb5b041242d08944d3c34eef36dfff1a9177c3.zip |
s/u_int/uint/g
-rw-r--r-- | archival/rpm.c | 16 | ||||
-rw-r--r-- | archival/rpm2cpio.c | 18 | ||||
-rw-r--r-- | util-linux/fdisk.c | 8 | ||||
-rw-r--r-- | util-linux/fsck_minix.c | 54 |
4 files changed, 48 insertions, 48 deletions
diff --git a/archival/rpm.c b/archival/rpm.c index e3f20ca35..eb2c0433b 100644 --- a/archival/rpm.c +++ b/archival/rpm.c | |||
@@ -82,10 +82,10 @@ enum rpm_functions_e { | |||
82 | }; | 82 | }; |
83 | 83 | ||
84 | typedef struct { | 84 | typedef struct { |
85 | u_int32_t tag; /* 4 byte tag */ | 85 | uint32_t tag; /* 4 byte tag */ |
86 | u_int32_t type; /* 4 byte type */ | 86 | uint32_t type; /* 4 byte type */ |
87 | u_int32_t offset; /* 4 byte offset */ | 87 | uint32_t offset; /* 4 byte offset */ |
88 | u_int32_t count; /* 4 byte count */ | 88 | uint32_t count; /* 4 byte count */ |
89 | } rpm_index; | 89 | } rpm_index; |
90 | 90 | ||
91 | static void *map; | 91 | static void *map; |
@@ -227,10 +227,10 @@ rpm_index **rpm_gettags(int fd, int *num_tags) | |||
227 | for (pass = 0; pass < 2; pass++) { /* 1st pass is the signature headers, 2nd is the main stuff */ | 227 | for (pass = 0; pass < 2; pass++) { /* 1st pass is the signature headers, 2nd is the main stuff */ |
228 | struct { | 228 | struct { |
229 | char magic[3]; /* 3 byte magic: 0x8e 0xad 0xe8 */ | 229 | char magic[3]; /* 3 byte magic: 0x8e 0xad 0xe8 */ |
230 | u_int8_t version; /* 1 byte version number */ | 230 | uint8_t version; /* 1 byte version number */ |
231 | u_int32_t reserved; /* 4 bytes reserved */ | 231 | uint32_t reserved; /* 4 bytes reserved */ |
232 | u_int32_t entries; /* Number of entries in header (4 bytes) */ | 232 | uint32_t entries; /* Number of entries in header (4 bytes) */ |
233 | u_int32_t size; /* Size of store (4 bytes) */ | 233 | uint32_t size; /* Size of store (4 bytes) */ |
234 | } header; | 234 | } header; |
235 | rpm_index *tmpindex; | 235 | rpm_index *tmpindex; |
236 | int storepos; | 236 | int storepos; |
diff --git a/archival/rpm2cpio.c b/archival/rpm2cpio.c index 47f4e73cd..d0041a83c 100644 --- a/archival/rpm2cpio.c +++ b/archival/rpm2cpio.c | |||
@@ -31,21 +31,21 @@ | |||
31 | 31 | ||
32 | struct rpm_lead { | 32 | struct rpm_lead { |
33 | unsigned char magic[4]; | 33 | unsigned char magic[4]; |
34 | u_int8_t major, minor; | 34 | uint8_t major, minor; |
35 | u_int16_t type; | 35 | uint16_t type; |
36 | u_int16_t archnum; | 36 | uint16_t archnum; |
37 | char name[66]; | 37 | char name[66]; |
38 | u_int16_t osnum; | 38 | uint16_t osnum; |
39 | u_int16_t signature_type; | 39 | uint16_t signature_type; |
40 | char reserved[16]; | 40 | char reserved[16]; |
41 | }; | 41 | }; |
42 | 42 | ||
43 | struct rpm_header { | 43 | struct rpm_header { |
44 | char magic[3]; /* 3 byte magic: 0x8e 0xad 0xe8 */ | 44 | char magic[3]; /* 3 byte magic: 0x8e 0xad 0xe8 */ |
45 | u_int8_t version; /* 1 byte version number */ | 45 | uint8_t version; /* 1 byte version number */ |
46 | u_int32_t reserved; /* 4 bytes reserved */ | 46 | uint32_t reserved; /* 4 bytes reserved */ |
47 | u_int32_t entries; /* Number of entries in header (4 bytes) */ | 47 | uint32_t entries; /* Number of entries in header (4 bytes) */ |
48 | u_int32_t size; /* Size of store (4 bytes) */ | 48 | uint32_t size; /* Size of store (4 bytes) */ |
49 | }; | 49 | }; |
50 | 50 | ||
51 | void skip_header(int rpm_fd) | 51 | void skip_header(int rpm_fd) |
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index 2088e6c67..891380395 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c | |||
@@ -954,7 +954,7 @@ static int xbsd_part_index; | |||
954 | #endif | 954 | #endif |
955 | 955 | ||
956 | #if defined (__alpha__) | 956 | #if defined (__alpha__) |
957 | /* We access this through a u_int64_t * when checksumming */ | 957 | /* We access this through a uint64_t * when checksumming */ |
958 | static char disklabelbuffer[BSD_BBSIZE] __attribute__((aligned(8))); | 958 | static char disklabelbuffer[BSD_BBSIZE] __attribute__((aligned(8))); |
959 | #else | 959 | #else |
960 | static char disklabelbuffer[BSD_BBSIZE]; | 960 | static char disklabelbuffer[BSD_BBSIZE]; |
@@ -1712,16 +1712,16 @@ xbsd_link_part (void) | |||
1712 | #if defined (__alpha__) | 1712 | #if defined (__alpha__) |
1713 | 1713 | ||
1714 | #if !defined(__GLIBC__) | 1714 | #if !defined(__GLIBC__) |
1715 | typedef unsigned long long u_int64_t; | 1715 | typedef unsigned long long uint64_t; |
1716 | #endif | 1716 | #endif |
1717 | 1717 | ||
1718 | static void | 1718 | static void |
1719 | alpha_bootblock_checksum (char *boot) | 1719 | alpha_bootblock_checksum (char *boot) |
1720 | { | 1720 | { |
1721 | u_int64_t *dp, sum; | 1721 | uint64_t *dp, sum; |
1722 | int i; | 1722 | int i; |
1723 | 1723 | ||
1724 | dp = (u_int64_t *)boot; | 1724 | dp = (uint64_t *)boot; |
1725 | sum = 0; | 1725 | sum = 0; |
1726 | for (i = 0; i < 63; i++) | 1726 | for (i = 0; i < 63; i++) |
1727 | sum += dp[i]; | 1727 | sum += dp[i]; |
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c index 3a691476e..4d07e028f 100644 --- a/util-linux/fsck_minix.c +++ b/util-linux/fsck_minix.c | |||
@@ -124,13 +124,13 @@ static const int MINIX_V2 = 0x0002; /* minix V2 fs */ | |||
124 | * Note the 8-bit gid and atime and ctime. | 124 | * Note the 8-bit gid and atime and ctime. |
125 | */ | 125 | */ |
126 | struct minix_inode { | 126 | struct minix_inode { |
127 | u_int16_t i_mode; | 127 | uint16_t i_mode; |
128 | u_int16_t i_uid; | 128 | uint16_t i_uid; |
129 | u_int32_t i_size; | 129 | uint32_t i_size; |
130 | u_int32_t i_time; | 130 | uint32_t i_time; |
131 | u_int8_t i_gid; | 131 | uint8_t i_gid; |
132 | u_int8_t i_nlinks; | 132 | uint8_t i_nlinks; |
133 | u_int16_t i_zone[9]; | 133 | uint16_t i_zone[9]; |
134 | }; | 134 | }; |
135 | 135 | ||
136 | /* | 136 | /* |
@@ -140,35 +140,35 @@ struct minix_inode { | |||
140 | * now 16-bit. The inode is now 64 bytes instead of 32. | 140 | * now 16-bit. The inode is now 64 bytes instead of 32. |
141 | */ | 141 | */ |
142 | struct minix2_inode { | 142 | struct minix2_inode { |
143 | u_int16_t i_mode; | 143 | uint16_t i_mode; |
144 | u_int16_t i_nlinks; | 144 | uint16_t i_nlinks; |
145 | u_int16_t i_uid; | 145 | uint16_t i_uid; |
146 | u_int16_t i_gid; | 146 | uint16_t i_gid; |
147 | u_int32_t i_size; | 147 | uint32_t i_size; |
148 | u_int32_t i_atime; | 148 | uint32_t i_atime; |
149 | u_int32_t i_mtime; | 149 | uint32_t i_mtime; |
150 | u_int32_t i_ctime; | 150 | uint32_t i_ctime; |
151 | u_int32_t i_zone[10]; | 151 | uint32_t i_zone[10]; |
152 | }; | 152 | }; |
153 | 153 | ||
154 | /* | 154 | /* |
155 | * minix super-block data on disk | 155 | * minix super-block data on disk |
156 | */ | 156 | */ |
157 | struct minix_super_block { | 157 | struct minix_super_block { |
158 | u_int16_t s_ninodes; | 158 | uint16_t s_ninodes; |
159 | u_int16_t s_nzones; | 159 | uint16_t s_nzones; |
160 | u_int16_t s_imap_blocks; | 160 | uint16_t s_imap_blocks; |
161 | u_int16_t s_zmap_blocks; | 161 | uint16_t s_zmap_blocks; |
162 | u_int16_t s_firstdatazone; | 162 | uint16_t s_firstdatazone; |
163 | u_int16_t s_log_zone_size; | 163 | uint16_t s_log_zone_size; |
164 | u_int32_t s_max_size; | 164 | uint32_t s_max_size; |
165 | u_int16_t s_magic; | 165 | uint16_t s_magic; |
166 | u_int16_t s_state; | 166 | uint16_t s_state; |
167 | u_int32_t s_zones; | 167 | uint32_t s_zones; |
168 | }; | 168 | }; |
169 | 169 | ||
170 | struct minix_dir_entry { | 170 | struct minix_dir_entry { |
171 | u_int16_t inode; | 171 | uint16_t inode; |
172 | char name[0]; | 172 | char name[0]; |
173 | }; | 173 | }; |
174 | 174 | ||