aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-13 23:22:00 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-13 23:22:00 +0000
commit28cef1002ae00f79c45522c0672c81c63556cb84 (patch)
treea8fec29d731170b2a36b27d18e2d9720c970bf57
parent60fde77e8c41704da04ab3366a6727ed37e1ad97 (diff)
downloadbusybox-w32-28cef1002ae00f79c45522c0672c81c63556cb84.tar.gz
busybox-w32-28cef1002ae00f79c45522c0672c81c63556cb84.tar.bz2
busybox-w32-28cef1002ae00f79c45522c0672c81c63556cb84.zip
style fixes
git-svn-id: svn://busybox.net/trunk/busybox@18433 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--archival/libunarchive/decompress_uncompress.c14
-rw-r--r--coreutils/stat.c68
-rw-r--r--include/platform.h8
-rw-r--r--include/shadow_.h14
-rw-r--r--libpwdgrp/pwd_grp.c4
-rw-r--r--networking/route.c2
-rw-r--r--scripts/kconfig/zconf.tab.c_shipped2
-rw-r--r--util-linux/mount.c5
8 files changed, 58 insertions, 59 deletions
diff --git a/archival/libunarchive/decompress_uncompress.c b/archival/libunarchive/decompress_uncompress.c
index 8ce3cba74..a1d7fd67c 100644
--- a/archival/libunarchive/decompress_uncompress.c
+++ b/archival/libunarchive/decompress_uncompress.c
@@ -85,18 +85,18 @@ uncompress(int fd_in, int fd_out)
85{ 85{
86 USE_DESKTOP(long long total_written = 0;) 86 USE_DESKTOP(long long total_written = 0;)
87 unsigned char *stackp; 87 unsigned char *stackp;
88 long int code; 88 long code;
89 int finchar; 89 int finchar;
90 long int oldcode; 90 long oldcode;
91 long int incode; 91 long incode;
92 int inbits; 92 int inbits;
93 int posbits; 93 int posbits;
94 int outpos; 94 int outpos;
95 int insize; 95 int insize;
96 int bitmask; 96 int bitmask;
97 long int free_ent; 97 long free_ent;
98 long int maxcode; 98 long maxcode;
99 long int maxmaxcode; 99 long maxmaxcode;
100 int n_bits; 100 int n_bits;
101 int rsize = 0; 101 int rsize = 0;
102 RESERVE_CONFIG_UBUFFER(inbuf, IBUFSIZ + 64); 102 RESERVE_CONFIG_UBUFFER(inbuf, IBUFSIZ + 64);
@@ -243,7 +243,7 @@ uncompress(int fd_in, int fd_out)
243 } 243 }
244 244
245 /* Generate output characters in reverse order */ 245 /* Generate output characters in reverse order */
246 while ((long int) code >= (long int) 256) { 246 while ((long) code >= (long) 256) {
247 *--stackp = tab_suffixof(code); 247 *--stackp = tab_suffixof(code);
248 code = tab_prefixof(code); 248 code = tab_prefixof(code);
249 } 249 }
diff --git a/coreutils/stat.c b/coreutils/stat.c
index 7c5631764..16b8d1e44 100644
--- a/coreutils/stat.c
+++ b/coreutils/stat.c
@@ -133,7 +133,7 @@ static void print_statfs(char *pformat, const size_t buf_len, const char m,
133 printf(pformat, statfsbuf->f_namelen); 133 printf(pformat, statfsbuf->f_namelen);
134 } else if (m == 't') { 134 } else if (m == 't') {
135 strncat(pformat, "lx", buf_len); 135 strncat(pformat, "lx", buf_len);
136 printf(pformat, (unsigned long int) (statfsbuf->f_type)); /* no equiv */ 136 printf(pformat, (unsigned long) (statfsbuf->f_type)); /* no equiv */
137 } else if (m == 'T') { 137 } else if (m == 'T') {
138 strncat(pformat, "s", buf_len); 138 strncat(pformat, "s", buf_len);
139 printf(pformat, human_fstype(statfsbuf->f_type)); 139 printf(pformat, human_fstype(statfsbuf->f_type));
@@ -148,7 +148,7 @@ static void print_statfs(char *pformat, const size_t buf_len, const char m,
148 printf(pformat, (intmax_t) (statfsbuf->f_bavail)); 148 printf(pformat, (intmax_t) (statfsbuf->f_bavail));
149 } else if (m == 's' || m == 'S') { 149 } else if (m == 's' || m == 'S') {
150 strncat(pformat, "lu", buf_len); 150 strncat(pformat, "lu", buf_len);
151 printf(pformat, (unsigned long int) (statfsbuf->f_bsize)); 151 printf(pformat, (unsigned long) (statfsbuf->f_bsize));
152 } else if (m == 'c') { 152 } else if (m == 'c') {
153 strncat(pformat, "jd", buf_len); 153 strncat(pformat, "jd", buf_len);
154 printf(pformat, (intmax_t) (statfsbuf->f_files)); 154 printf(pformat, (intmax_t) (statfsbuf->f_files));
@@ -205,22 +205,22 @@ static void print_stat(char *pformat, const size_t buf_len, const char m,
205 printf(pformat, (uintmax_t) statbuf->st_ino); 205 printf(pformat, (uintmax_t) statbuf->st_ino);
206 } else if (m == 'a') { 206 } else if (m == 'a') {
207 strncat(pformat, "lo", buf_len); 207 strncat(pformat, "lo", buf_len);
208 printf(pformat, (unsigned long int) (statbuf->st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO))); 208 printf(pformat, (unsigned long) (statbuf->st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)));
209 } else if (m == 'A') { 209 } else if (m == 'A') {
210 strncat(pformat, "s", buf_len); 210 strncat(pformat, "s", buf_len);
211 printf(pformat, bb_mode_string(statbuf->st_mode)); 211 printf(pformat, bb_mode_string(statbuf->st_mode));
212 } else if (m == 'f') { 212 } else if (m == 'f') {
213 strncat(pformat, "lx", buf_len); 213 strncat(pformat, "lx", buf_len);
214 printf(pformat, (unsigned long int) statbuf->st_mode); 214 printf(pformat, (unsigned long) statbuf->st_mode);
215 } else if (m == 'F') { 215 } else if (m == 'F') {
216 strncat(pformat, "s", buf_len); 216 strncat(pformat, "s", buf_len);
217 printf(pformat, file_type(statbuf)); 217 printf(pformat, file_type(statbuf));
218 } else if (m == 'h') { 218 } else if (m == 'h') {
219 strncat(pformat, "lu", buf_len); 219 strncat(pformat, "lu", buf_len);
220 printf(pformat, (unsigned long int) statbuf->st_nlink); 220 printf(pformat, (unsigned long) statbuf->st_nlink);
221 } else if (m == 'u') { 221 } else if (m == 'u') {
222 strncat(pformat, "lu", buf_len); 222 strncat(pformat, "lu", buf_len);
223 printf(pformat, (unsigned long int) statbuf->st_uid); 223 printf(pformat, (unsigned long) statbuf->st_uid);
224 } else if (m == 'U') { 224 } else if (m == 'U') {
225 strncat(pformat, "s", buf_len); 225 strncat(pformat, "s", buf_len);
226 setpwent(); 226 setpwent();
@@ -228,7 +228,7 @@ static void print_stat(char *pformat, const size_t buf_len, const char m,
228 printf(pformat, (pw_ent != 0L) ? pw_ent->pw_name : "UNKNOWN"); 228 printf(pformat, (pw_ent != 0L) ? pw_ent->pw_name : "UNKNOWN");
229 } else if (m == 'g') { 229 } else if (m == 'g') {
230 strncat(pformat, "lu", buf_len); 230 strncat(pformat, "lu", buf_len);
231 printf(pformat, (unsigned long int) statbuf->st_gid); 231 printf(pformat, (unsigned long) statbuf->st_gid);
232 } else if (m == 'G') { 232 } else if (m == 'G') {
233 strncat(pformat, "s", buf_len); 233 strncat(pformat, "s", buf_len);
234 setgrent(); 234 setgrent();
@@ -236,40 +236,40 @@ static void print_stat(char *pformat, const size_t buf_len, const char m,
236 printf(pformat, (gw_ent != 0L) ? gw_ent->gr_name : "UNKNOWN"); 236 printf(pformat, (gw_ent != 0L) ? gw_ent->gr_name : "UNKNOWN");
237 } else if (m == 't') { 237 } else if (m == 't') {
238 strncat(pformat, "lx", buf_len); 238 strncat(pformat, "lx", buf_len);
239 printf(pformat, (unsigned long int) major(statbuf->st_rdev)); 239 printf(pformat, (unsigned long) major(statbuf->st_rdev));
240 } else if (m == 'T') { 240 } else if (m == 'T') {
241 strncat(pformat, "lx", buf_len); 241 strncat(pformat, "lx", buf_len);
242 printf(pformat, (unsigned long int) minor(statbuf->st_rdev)); 242 printf(pformat, (unsigned long) minor(statbuf->st_rdev));
243 } else if (m == 's') { 243 } else if (m == 's') {
244 strncat(pformat, "ju", buf_len); 244 strncat(pformat, "ju", buf_len);
245 printf(pformat, (uintmax_t) (statbuf->st_size)); 245 printf(pformat, (uintmax_t) (statbuf->st_size));
246 } else if (m == 'B') { 246 } else if (m == 'B') {
247 strncat(pformat, "lu", buf_len); 247 strncat(pformat, "lu", buf_len);
248 printf(pformat, (unsigned long int) 512); //ST_NBLOCKSIZE 248 printf(pformat, (unsigned long) 512); //ST_NBLOCKSIZE
249 } else if (m == 'b') { 249 } else if (m == 'b') {
250 strncat(pformat, "ju", buf_len); 250 strncat(pformat, "ju", buf_len);
251 printf(pformat, (uintmax_t) statbuf->st_blocks); 251 printf(pformat, (uintmax_t) statbuf->st_blocks);
252 } else if (m == 'o') { 252 } else if (m == 'o') {
253 strncat(pformat, "lu", buf_len); 253 strncat(pformat, "lu", buf_len);
254 printf(pformat, (unsigned long int) statbuf->st_blksize); 254 printf(pformat, (unsigned long) statbuf->st_blksize);
255 } else if (m == 'x') { 255 } else if (m == 'x') {
256 strncat(pformat, "s", buf_len); 256 strncat(pformat, "s", buf_len);
257 printf(pformat, human_time(statbuf->st_atime)); 257 printf(pformat, human_time(statbuf->st_atime));
258 } else if (m == 'X') { 258 } else if (m == 'X') {
259 strncat(pformat, TYPE_SIGNED(time_t) ? "ld" : "lu", buf_len); 259 strncat(pformat, TYPE_SIGNED(time_t) ? "ld" : "lu", buf_len);
260 printf(pformat, (unsigned long int) statbuf->st_atime); 260 printf(pformat, (unsigned long) statbuf->st_atime);
261 } else if (m == 'y') { 261 } else if (m == 'y') {
262 strncat(pformat, "s", buf_len); 262 strncat(pformat, "s", buf_len);
263 printf(pformat, human_time(statbuf->st_mtime)); 263 printf(pformat, human_time(statbuf->st_mtime));
264 } else if (m == 'Y') { 264 } else if (m == 'Y') {
265 strncat(pformat, TYPE_SIGNED(time_t) ? "ld" : "lu", buf_len); 265 strncat(pformat, TYPE_SIGNED(time_t) ? "ld" : "lu", buf_len);
266 printf(pformat, (unsigned long int) statbuf->st_mtime); 266 printf(pformat, (unsigned long) statbuf->st_mtime);
267 } else if (m == 'z') { 267 } else if (m == 'z') {
268 strncat(pformat, "s", buf_len); 268 strncat(pformat, "s", buf_len);
269 printf(pformat, human_time(statbuf->st_ctime)); 269 printf(pformat, human_time(statbuf->st_ctime));
270 } else if (m == 'Z') { 270 } else if (m == 'Z') {
271 strncat(pformat, TYPE_SIGNED(time_t) ? "ld" : "lu", buf_len); 271 strncat(pformat, TYPE_SIGNED(time_t) ? "ld" : "lu", buf_len);
272 printf(pformat, (unsigned long int) statbuf->st_ctime); 272 printf(pformat, (unsigned long) statbuf->st_ctime);
273#if ENABLE_SELINUX 273#if ENABLE_SELINUX
274 } else if (m == 'C' && (option_mask32 & OPT_SELINUX)) { 274 } else if (m == 'C' && (option_mask32 & OPT_SELINUX)) {
275 strncat(pformat, "s", buf_len); 275 strncat(pformat, "s", buf_len);
@@ -395,7 +395,7 @@ static bool do_statfs(char const *filename, char const *format)
395 statfsbuf.f_namelen); 395 statfsbuf.f_namelen);
396 396
397 if (option_mask32 & OPT_TERSE) 397 if (option_mask32 & OPT_TERSE)
398 printf("%lx ", (unsigned long int) (statfsbuf.f_type)); 398 printf("%lx ", (unsigned long) (statfsbuf.f_type));
399 else 399 else
400 printf("Type: %s\n", human_fstype(statfsbuf.f_type)); 400 printf("Type: %s\n", human_fstype(statfsbuf.f_type));
401 401
@@ -406,7 +406,7 @@ static bool do_statfs(char const *filename, char const *format)
406 "Blocks: Total: %-10jd Free: %-10jd Available: %jd\n" 406 "Blocks: Total: %-10jd Free: %-10jd Available: %jd\n"
407 "Inodes: Total: %-10jd Free: %jd\n"); 407 "Inodes: Total: %-10jd Free: %jd\n");
408 printf(format, 408 printf(format,
409 (unsigned long int) (statfsbuf.f_bsize), 409 (unsigned long) (statfsbuf.f_bsize),
410 (intmax_t) (statfsbuf.f_blocks), 410 (intmax_t) (statfsbuf.f_blocks),
411 (intmax_t) (statfsbuf.f_bfree), 411 (intmax_t) (statfsbuf.f_bfree),
412 (intmax_t) (statfsbuf.f_bavail), 412 (intmax_t) (statfsbuf.f_bavail),
@@ -425,7 +425,7 @@ static bool do_statfs(char const *filename, char const *format)
425 "Blocks: Total: %-10jd Free: %-10jd Available: %jd\n" 425 "Blocks: Total: %-10jd Free: %-10jd Available: %jd\n"
426 "Inodes: Total: %-10jd Free: %jd\n")); 426 "Inodes: Total: %-10jd Free: %jd\n"));
427 printf(format, 427 printf(format,
428 (unsigned long int) (statfsbuf.f_bsize), 428 (unsigned long) (statfsbuf.f_bsize),
429 (intmax_t) (statfsbuf.f_blocks), 429 (intmax_t) (statfsbuf.f_blocks),
430 (intmax_t) (statfsbuf.f_bfree), 430 (intmax_t) (statfsbuf.f_bfree),
431 (intmax_t) (statfsbuf.f_bavail), 431 (intmax_t) (statfsbuf.f_bavail),
@@ -529,18 +529,18 @@ static bool do_stat(char const *filename, char const *format)
529 filename, 529 filename,
530 (uintmax_t) (statbuf.st_size), 530 (uintmax_t) (statbuf.st_size),
531 (uintmax_t) statbuf.st_blocks, 531 (uintmax_t) statbuf.st_blocks,
532 (unsigned long int) statbuf.st_mode, 532 (unsigned long) statbuf.st_mode,
533 (unsigned long int) statbuf.st_uid, 533 (unsigned long) statbuf.st_uid,
534 (unsigned long int) statbuf.st_gid, 534 (unsigned long) statbuf.st_gid,
535 (uintmax_t) statbuf.st_dev, 535 (uintmax_t) statbuf.st_dev,
536 (uintmax_t) statbuf.st_ino, 536 (uintmax_t) statbuf.st_ino,
537 (unsigned long int) statbuf.st_nlink, 537 (unsigned long) statbuf.st_nlink,
538 (unsigned long int) major(statbuf.st_rdev), 538 (unsigned long) major(statbuf.st_rdev),
539 (unsigned long int) minor(statbuf.st_rdev), 539 (unsigned long) minor(statbuf.st_rdev),
540 (unsigned long int) statbuf.st_atime, 540 (unsigned long) statbuf.st_atime,
541 (unsigned long int) statbuf.st_mtime, 541 (unsigned long) statbuf.st_mtime,
542 (unsigned long int) statbuf.st_ctime, 542 (unsigned long) statbuf.st_ctime,
543 (unsigned long int) statbuf.st_blksize 543 (unsigned long) statbuf.st_blksize
544 ); 544 );
545#if ENABLE_SELINUX 545#if ENABLE_SELINUX
546 if (option_mask32 & OPT_SELINUX) 546 if (option_mask32 & OPT_SELINUX)
@@ -569,24 +569,24 @@ static bool do_stat(char const *filename, char const *format)
569 "Device: %jxh/%jud\tInode: %-10ju Links: %-5lu", 569 "Device: %jxh/%jud\tInode: %-10ju Links: %-5lu",
570 (uintmax_t) (statbuf.st_size), 570 (uintmax_t) (statbuf.st_size),
571 (uintmax_t) statbuf.st_blocks, 571 (uintmax_t) statbuf.st_blocks,
572 (unsigned long int) statbuf.st_blksize, 572 (unsigned long) statbuf.st_blksize,
573 file_type(&statbuf), 573 file_type(&statbuf),
574 (uintmax_t) statbuf.st_dev, 574 (uintmax_t) statbuf.st_dev,
575 (uintmax_t) statbuf.st_dev, 575 (uintmax_t) statbuf.st_dev,
576 (uintmax_t) statbuf.st_ino, 576 (uintmax_t) statbuf.st_ino,
577 (unsigned long int) statbuf.st_nlink); 577 (unsigned long) statbuf.st_nlink);
578 if (S_ISBLK(statbuf.st_mode) || S_ISCHR(statbuf.st_mode)) 578 if (S_ISBLK(statbuf.st_mode) || S_ISCHR(statbuf.st_mode))
579 printf(" Device type: %lx,%lx\n", 579 printf(" Device type: %lx,%lx\n",
580 (unsigned long int) major(statbuf.st_rdev), 580 (unsigned long) major(statbuf.st_rdev),
581 (unsigned long int) minor(statbuf.st_rdev)); 581 (unsigned long) minor(statbuf.st_rdev));
582 else 582 else
583 putchar('\n'); 583 putchar('\n');
584 printf("Access: (%04lo/%10.10s) Uid: (%5lu/%8s) Gid: (%5lu/%8s)\n", 584 printf("Access: (%04lo/%10.10s) Uid: (%5lu/%8s) Gid: (%5lu/%8s)\n",
585 (unsigned long int) (statbuf.st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)), 585 (unsigned long) (statbuf.st_mode & (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)),
586 bb_mode_string(statbuf.st_mode), 586 bb_mode_string(statbuf.st_mode),
587 (unsigned long int) statbuf.st_uid, 587 (unsigned long) statbuf.st_uid,
588 (pw_ent != 0L) ? pw_ent->pw_name : "UNKNOWN", 588 (pw_ent != 0L) ? pw_ent->pw_name : "UNKNOWN",
589 (unsigned long int) statbuf.st_gid, 589 (unsigned long) statbuf.st_gid,
590 (gw_ent != 0L) ? gw_ent->gr_name : "UNKNOWN"); 590 (gw_ent != 0L) ? gw_ent->gr_name : "UNKNOWN");
591#if ENABLE_SELINUX 591#if ENABLE_SELINUX
592 printf(" S_Context: %lc\n", *scontext); 592 printf(" S_Context: %lc\n", *scontext);
diff --git a/include/platform.h b/include/platform.h
index 4ed5fe624..0adbed4e7 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -173,13 +173,13 @@ __extension__ typedef unsigned long long __u64;
173#else 173#else
174/* Largest integral types. */ 174/* Largest integral types. */
175#if __BIG_ENDIAN__ 175#if __BIG_ENDIAN__
176typedef long int intmax_t; 176typedef long intmax_t;
177typedef unsigned long int uintmax_t; 177typedef unsigned long uintmax_t;
178#else 178#else
179__extension__ 179__extension__
180typedef long long int intmax_t; 180typedef long long intmax_t;
181__extension__ 181__extension__
182typedef unsigned long long int uintmax_t; 182typedef unsigned long long uintmax_t;
183#endif 183#endif
184#endif 184#endif
185 185
diff --git a/include/shadow_.h b/include/shadow_.h
index fb2153c52..92bcde864 100644
--- a/include/shadow_.h
+++ b/include/shadow_.h
@@ -37,13 +37,13 @@
37struct spwd { 37struct spwd {
38 char *sp_namp; /* Login name */ 38 char *sp_namp; /* Login name */
39 char *sp_pwdp; /* Encrypted password */ 39 char *sp_pwdp; /* Encrypted password */
40 long int sp_lstchg; /* Date of last change */ 40 long sp_lstchg; /* Date of last change */
41 long int sp_min; /* Minimum number of days between changes */ 41 long sp_min; /* Minimum number of days between changes */
42 long int sp_max; /* Maximum number of days between changes */ 42 long sp_max; /* Maximum number of days between changes */
43 long int sp_warn; /* Number of days to warn user to change the password */ 43 long sp_warn; /* Number of days to warn user to change the password */
44 long int sp_inact; /* Number of days the account may be inactive */ 44 long sp_inact; /* Number of days the account may be inactive */
45 long int sp_expire; /* Number of days since 1970-01-01 until account expires */ 45 long sp_expire; /* Number of days since 1970-01-01 until account expires */
46 unsigned long int sp_flag; /* Reserved */ 46 unsigned long sp_flag; /* Reserved */
47}; 47};
48 48
49 49
diff --git a/libpwdgrp/pwd_grp.c b/libpwdgrp/pwd_grp.c
index 7a8a23745..d59fd50bf 100644
--- a/libpwdgrp/pwd_grp.c
+++ b/libpwdgrp/pwd_grp.c
@@ -679,7 +679,7 @@ int putspent(const struct spwd *p, FILE *stream)
679{ 679{
680 static const char ld_format[] = "%ld:"; 680 static const char ld_format[] = "%ld:";
681 const char *f; 681 const char *f;
682 long int x; 682 long x;
683 int i; 683 int i;
684 int rv = -1; 684 int rv = -1;
685 685
@@ -692,7 +692,7 @@ int putspent(const struct spwd *p, FILE *stream)
692 692
693 for (i=0 ; i < sizeof(_sp_off) ; i++) { 693 for (i=0 ; i < sizeof(_sp_off) ; i++) {
694 f = ld_format; 694 f = ld_format;
695 x = *(const long int *)(((const char *) p) + _sp_off[i]); 695 x = *(const long *)(((const char *) p) + _sp_off[i]);
696 if (x == -1) { 696 if (x == -1) {
697 f += 3; 697 f += 3;
698 } 698 }
diff --git a/networking/route.c b/networking/route.c
index dfb8ee56f..da5969868 100644
--- a/networking/route.c
+++ b/networking/route.c
@@ -478,7 +478,7 @@ static void set_flags(char *flagstr, int flags)
478void bb_displayroutes(int noresolve, int netstatfmt) 478void bb_displayroutes(int noresolve, int netstatfmt)
479{ 479{
480 char devname[64], flags[16], sdest[16], sgw[16]; 480 char devname[64], flags[16], sdest[16], sgw[16];
481 unsigned long int d, g, m; 481 unsigned long d, g, m;
482 int flgs, ref, use, metric, mtu, win, ir; 482 int flgs, ref, use, metric, mtu, win, ir;
483 struct sockaddr_in s_addr; 483 struct sockaddr_in s_addr;
484 struct in_addr mask; 484 struct in_addr mask;
diff --git a/scripts/kconfig/zconf.tab.c_shipped b/scripts/kconfig/zconf.tab.c_shipped
index ca8003dce..97100b764 100644
--- a/scripts/kconfig/zconf.tab.c_shipped
+++ b/scripts/kconfig/zconf.tab.c_shipped
@@ -1219,7 +1219,7 @@ yyparse ()
1219 1219
1220 1220
1221 YYDPRINTF ((stderr, "Stack size increased to %lu\n", 1221 YYDPRINTF ((stderr, "Stack size increased to %lu\n",
1222 (unsigned long int) yystacksize)); 1222 (unsigned long) yystacksize));
1223 1223
1224 if (yyss + yystacksize - 1 <= yyssp) 1224 if (yyss + yystacksize - 1 <= yyssp)
1225 YYABORT; 1225 YYABORT;
diff --git a/util-linux/mount.c b/util-linux/mount.c
index e4a7c81c6..7dd70392a 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -201,17 +201,16 @@ static int parse_mount_options(char *options, char **unrecognized)
201 201
202static llist_t *get_block_backed_filesystems(void) 202static llist_t *get_block_backed_filesystems(void)
203{ 203{
204 static const char *const filesystems[] = { 204 static const char filesystems[2][sizeof("/proc/filesystems")] = {
205 "/etc/filesystems", 205 "/etc/filesystems",
206 "/proc/filesystems", 206 "/proc/filesystems",
207 0
208 }; 207 };
209 char *fs, *buf; 208 char *fs, *buf;
210 llist_t *list = 0; 209 llist_t *list = 0;
211 int i; 210 int i;
212 FILE *f; 211 FILE *f;
213 212
214 for (i = 0; filesystems[i]; i++) { 213 for (i = 0; i < 2; i++) {
215 f = fopen(filesystems[i], "r"); 214 f = fopen(filesystems[i], "r");
216 if (!f) continue; 215 if (!f) continue;
217 216