aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/fdisk.c8
-rw-r--r--util-linux/fsck_minix.c54
2 files changed, 31 insertions, 31 deletions
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 */
958static char disklabelbuffer[BSD_BBSIZE] __attribute__((aligned(8))); 958static char disklabelbuffer[BSD_BBSIZE] __attribute__((aligned(8)));
959#else 959#else
960static char disklabelbuffer[BSD_BBSIZE]; 960static 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__)
1715typedef unsigned long long u_int64_t; 1715typedef unsigned long long uint64_t;
1716#endif 1716#endif
1717 1717
1718static void 1718static void
1719alpha_bootblock_checksum (char *boot) 1719alpha_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 */
126struct minix_inode { 126struct 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 */
142struct minix2_inode { 142struct 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 */
157struct minix_super_block { 157struct 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
170struct minix_dir_entry { 170struct minix_dir_entry {
171 u_int16_t inode; 171 uint16_t inode;
172 char name[0]; 172 char name[0];
173}; 173};
174 174