diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-01-14 15:57:44 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-01-14 15:57:44 +0100 |
commit | 60cb48ca50fcff24aa6c3927f51e4a508fa118f4 (patch) | |
tree | 493e30821f3d484b7395ce9d9e4be39ec9a43126 | |
parent | b8173b603f57dcf918a67f1ec00763ab5f4e1cf8 (diff) | |
download | busybox-w32-60cb48ca50fcff24aa6c3927f51e4a508fa118f4.tar.gz busybox-w32-60cb48ca50fcff24aa6c3927f51e4a508fa118f4.tar.bz2 busybox-w32-60cb48ca50fcff24aa6c3927f51e4a508fa118f4.zip |
whitespace cleanup. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
59 files changed, 233 insertions, 219 deletions
diff --git a/archival/cpio.c b/archival/cpio.c index 98cc18fa0..699c6dbb7 100644 --- a/archival/cpio.c +++ b/archival/cpio.c | |||
@@ -253,24 +253,24 @@ static NOINLINE int cpio_o(void) | |||
253 | } | 253 | } |
254 | 254 | ||
255 | bytes += printf("070701" | 255 | bytes += printf("070701" |
256 | "%08X%08X%08X%08X%08X%08X%08X" | 256 | "%08X%08X%08X%08X%08X%08X%08X" |
257 | "%08X%08X%08X%08X" /* GNU cpio uses uppercase hex */ | 257 | "%08X%08X%08X%08X" /* GNU cpio uses uppercase hex */ |
258 | /* strlen+1: */ "%08X" | 258 | /* strlen+1: */ "%08X" |
259 | /* chksum: */ "00000000" /* (only for "070702" files) */ | 259 | /* chksum: */ "00000000" /* (only for "070702" files) */ |
260 | /* name,NUL: */ "%s%c", | 260 | /* name,NUL: */ "%s%c", |
261 | (unsigned)(uint32_t) st.st_ino, | 261 | (unsigned)(uint32_t) st.st_ino, |
262 | (unsigned)(uint32_t) st.st_mode, | 262 | (unsigned)(uint32_t) st.st_mode, |
263 | (unsigned)(uint32_t) st.st_uid, | 263 | (unsigned)(uint32_t) st.st_uid, |
264 | (unsigned)(uint32_t) st.st_gid, | 264 | (unsigned)(uint32_t) st.st_gid, |
265 | (unsigned)(uint32_t) st.st_nlink, | 265 | (unsigned)(uint32_t) st.st_nlink, |
266 | (unsigned)(uint32_t) st.st_mtime, | 266 | (unsigned)(uint32_t) st.st_mtime, |
267 | (unsigned)(uint32_t) st.st_size, | 267 | (unsigned)(uint32_t) st.st_size, |
268 | (unsigned)(uint32_t) major(st.st_dev), | 268 | (unsigned)(uint32_t) major(st.st_dev), |
269 | (unsigned)(uint32_t) minor(st.st_dev), | 269 | (unsigned)(uint32_t) minor(st.st_dev), |
270 | (unsigned)(uint32_t) major(st.st_rdev), | 270 | (unsigned)(uint32_t) major(st.st_rdev), |
271 | (unsigned)(uint32_t) minor(st.st_rdev), | 271 | (unsigned)(uint32_t) minor(st.st_rdev), |
272 | (unsigned)(strlen(name) + 1), | 272 | (unsigned)(strlen(name) + 1), |
273 | name, '\0'); | 273 | name, '\0'); |
274 | bytes = cpio_pad4(bytes); | 274 | bytes = cpio_pad4(bytes); |
275 | 275 | ||
276 | if (st.st_size) { | 276 | if (st.st_size) { |
diff --git a/archival/libarchive/decompress_gunzip.c b/archival/libarchive/decompress_gunzip.c index 2d5ab3eb3..4e6b138c3 100644 --- a/archival/libarchive/decompress_gunzip.c +++ b/archival/libarchive/decompress_gunzip.c | |||
@@ -293,8 +293,8 @@ static unsigned fill_bitbuffer(STATE_PARAM unsigned bitbuffer, unsigned *current | |||
293 | * m: maximum lookup bits, returns actual | 293 | * m: maximum lookup bits, returns actual |
294 | */ | 294 | */ |
295 | static int huft_build(const unsigned *b, const unsigned n, | 295 | static int huft_build(const unsigned *b, const unsigned n, |
296 | const unsigned s, const unsigned short *d, | 296 | const unsigned s, const unsigned short *d, |
297 | const unsigned char *e, huft_t **t, unsigned *m) | 297 | const unsigned char *e, huft_t **t, unsigned *m) |
298 | { | 298 | { |
299 | unsigned a; /* counter for codes of length k */ | 299 | unsigned a; /* counter for codes of length k */ |
300 | unsigned c[BMAX + 1]; /* bit length count table */ | 300 | unsigned c[BMAX + 1]; /* bit length count table */ |
diff --git a/archival/libarchive/decompress_uncompress.c b/archival/libarchive/decompress_uncompress.c index 3826a65ea..53c27080f 100644 --- a/archival/libarchive/decompress_uncompress.c +++ b/archival/libarchive/decompress_uncompress.c | |||
@@ -235,8 +235,8 @@ unpack_Z_stream(transformer_aux_data_t *aux, int src_fd, int dst_fd) | |||
235 | p = &inbuf[posbits >> 3]; | 235 | p = &inbuf[posbits >> 3]; |
236 | bb_error_msg | 236 | bb_error_msg |
237 | ("insize:%d posbits:%d inbuf:%02X %02X %02X %02X %02X (%d)", | 237 | ("insize:%d posbits:%d inbuf:%02X %02X %02X %02X %02X (%d)", |
238 | insize, posbits, p[-1], p[0], p[1], p[2], p[3], | 238 | insize, posbits, p[-1], p[0], p[1], p[2], p[3], |
239 | (posbits & 07)); | 239 | (posbits & 07)); |
240 | */ | 240 | */ |
241 | bb_error_msg("corrupted data"); | 241 | bb_error_msg("corrupted data"); |
242 | goto err; | 242 | goto err; |
diff --git a/archival/libarchive/lzo1x_9x.c b/archival/libarchive/lzo1x_9x.c index 483205155..897132987 100644 --- a/archival/libarchive/lzo1x_9x.c +++ b/archival/libarchive/lzo1x_9x.c | |||
@@ -644,7 +644,7 @@ static int len_of_coded_match(unsigned m_len, unsigned m_off, unsigned lit) | |||
644 | 644 | ||
645 | 645 | ||
646 | static int min_gain(unsigned ahead, unsigned lit1, | 646 | static int min_gain(unsigned ahead, unsigned lit1, |
647 | unsigned lit2, int l1, int l2, int l3) | 647 | unsigned lit2, int l1, int l2, int l3) |
648 | { | 648 | { |
649 | int lazy_match_min_gain = 0; | 649 | int lazy_match_min_gain = 0; |
650 | 650 | ||
@@ -673,7 +673,7 @@ static int min_gain(unsigned ahead, unsigned lit1, | |||
673 | #if defined(SWD_BEST_OFF) | 673 | #if defined(SWD_BEST_OFF) |
674 | 674 | ||
675 | static void better_match(const lzo_swd_p swd, | 675 | static void better_match(const lzo_swd_p swd, |
676 | unsigned *m_len, unsigned *m_off) | 676 | unsigned *m_len, unsigned *m_off) |
677 | { | 677 | { |
678 | if (*m_len <= M2_MIN_LEN) | 678 | if (*m_len <= M2_MIN_LEN) |
679 | return; | 679 | return; |
@@ -914,8 +914,8 @@ int lzo1x_999_compress_level(const uint8_t *in, unsigned in_len, | |||
914 | 914 | ||
915 | compression_level -= 7; | 915 | compression_level -= 7; |
916 | return lzo1x_999_compress_internal(in, in_len, out, out_len, wrkmem, | 916 | return lzo1x_999_compress_internal(in, in_len, out, out_len, wrkmem, |
917 | c[compression_level].good_length, | 917 | c[compression_level].good_length, |
918 | c[compression_level].max_lazy, | 918 | c[compression_level].max_lazy, |
919 | c[compression_level].max_chain, | 919 | c[compression_level].max_chain, |
920 | c[compression_level].use_best_off); | 920 | c[compression_level].use_best_off); |
921 | } | 921 | } |
diff --git a/archival/libarchive/lzo1x_c.c b/archival/libarchive/lzo1x_c.c index cc86f74b1..8c77072ab 100644 --- a/archival/libarchive/lzo1x_c.c +++ b/archival/libarchive/lzo1x_c.c | |||
@@ -15,7 +15,7 @@ | |||
15 | 15 | ||
16 | The LZO library is distributed in the hope that it will be useful, | 16 | The LZO library is distributed in the hope that it will be useful, |
17 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 17 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | GNU General Public License for more details. | 19 | GNU General Public License for more details. |
20 | 20 | ||
21 | You should have received a copy of the GNU General Public License | 21 | You should have received a copy of the GNU General Public License |
diff --git a/archival/libarchive/lzo1x_d.c b/archival/libarchive/lzo1x_d.c index 348a85510..9bc1270da 100644 --- a/archival/libarchive/lzo1x_d.c +++ b/archival/libarchive/lzo1x_d.c | |||
@@ -15,7 +15,7 @@ | |||
15 | 15 | ||
16 | The LZO library is distributed in the hope that it will be useful, | 16 | The LZO library is distributed in the hope that it will be useful, |
17 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 17 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 18 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | GNU General Public License for more details. | 19 | GNU General Public License for more details. |
20 | 20 | ||
21 | You should have received a copy of the GNU General Public License | 21 | You should have received a copy of the GNU General Public License |
diff --git a/archival/lzop.c b/archival/lzop.c index ec4e784ed..56003d421 100644 --- a/archival/lzop.c +++ b/archival/lzop.c | |||
@@ -14,7 +14,7 @@ | |||
14 | 14 | ||
15 | This program is distributed in the hope that it will be useful, | 15 | This program is distributed in the hope that it will be useful, |
16 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 | GNU General Public License for more details. | 18 | GNU General Public License for more details. |
19 | 19 | ||
20 | You should have received a copy of the GNU General Public License | 20 | You should have received a copy of the GNU General Public License |
@@ -116,7 +116,7 @@ static NOINLINE int lzo1x_optimize(uint8_t *in, unsigned in_len, | |||
116 | unsigned nl; | 116 | unsigned nl; |
117 | unsigned long o_m1_a = 0, o_m1_b = 0, o_m2 = 0, o_m3_a = 0, o_m3_b = 0; | 117 | unsigned long o_m1_a = 0, o_m1_b = 0, o_m2 = 0, o_m3_a = 0, o_m3_b = 0; |
118 | 118 | ||
119 | // LZO_UNUSED(wrkmem); | 119 | // LZO_UNUSED(wrkmem); |
120 | 120 | ||
121 | *out_len = 0; | 121 | *out_len = 0; |
122 | 122 | ||
@@ -346,8 +346,8 @@ static NOINLINE int lzo1x_optimize(uint8_t *in, unsigned in_len, | |||
346 | return LZO_E_EOF_NOT_FOUND; | 346 | return LZO_E_EOF_NOT_FOUND; |
347 | 347 | ||
348 | eof_found: | 348 | eof_found: |
349 | // LZO_UNUSED(o_m1_a); LZO_UNUSED(o_m1_b); LZO_UNUSED(o_m2); | 349 | // LZO_UNUSED(o_m1_a); LZO_UNUSED(o_m1_b); LZO_UNUSED(o_m2); |
350 | // LZO_UNUSED(o_m3_a); LZO_UNUSED(o_m3_b); | 350 | // LZO_UNUSED(o_m3_a); LZO_UNUSED(o_m3_b); |
351 | *out_len = pd(op, out); | 351 | *out_len = pd(op, out); |
352 | return (ip == ip_end ? LZO_E_OK : | 352 | return (ip == ip_end ? LZO_E_OK : |
353 | (ip < ip_end ? LZO_E_INPUT_NOT_CONSUMED : LZO_E_INPUT_OVERRUN)); | 353 | (ip < ip_end ? LZO_E_INPUT_NOT_CONSUMED : LZO_E_INPUT_OVERRUN)); |
diff --git a/coreutils/cal.c b/coreutils/cal.c index 158b23fbc..0b2307349 100644 --- a/coreutils/cal.c +++ b/coreutils/cal.c | |||
@@ -181,10 +181,11 @@ int cal_main(int argc UNUSED_PARAM, char **argv) | |||
181 | 181 | ||
182 | sprintf(lineout, "%u", year); | 182 | sprintf(lineout, "%u", year); |
183 | center(lineout, | 183 | center(lineout, |
184 | (WEEK_LEN * 3 + HEAD_SEP * 2) | 184 | (WEEK_LEN * 3 + HEAD_SEP * 2) |
185 | + julian * (J_WEEK_LEN * 2 + HEAD_SEP | 185 | + julian * (J_WEEK_LEN * 2 + HEAD_SEP |
186 | - (WEEK_LEN * 3 + HEAD_SEP * 2)), | 186 | - (WEEK_LEN * 3 + HEAD_SEP * 2)), |
187 | 0); | 187 | 0 |
188 | ); | ||
188 | puts("\n"); /* two \n's */ | 189 | puts("\n"); /* two \n's */ |
189 | for (i = 0; i < 12; i++) { | 190 | for (i = 0; i < 12; i++) { |
190 | day_array(i + 1, year, days[i]); | 191 | day_array(i + 1, year, days[i]); |
diff --git a/coreutils/mknod.c b/coreutils/mknod.c index 32d3659ac..aa0450481 100644 --- a/coreutils/mknod.c +++ b/coreutils/mknod.c | |||
@@ -59,7 +59,7 @@ int mknod_main(int argc, char **argv) | |||
59 | /* Autodetect what the system supports; these macros should | 59 | /* Autodetect what the system supports; these macros should |
60 | * optimize out to two constants. */ | 60 | * optimize out to two constants. */ |
61 | dev = makedev(xatoul_range(argv[2], 0, major(UINT_MAX)), | 61 | dev = makedev(xatoul_range(argv[2], 0, major(UINT_MAX)), |
62 | xatoul_range(argv[3], 0, minor(UINT_MAX))); | 62 | xatoul_range(argv[3], 0, minor(UINT_MAX))); |
63 | } | 63 | } |
64 | } | 64 | } |
65 | 65 | ||
diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c index 2f6650153..b408a8477 100644 --- a/coreutils/od_bloaty.c +++ b/coreutils/od_bloaty.c | |||
@@ -1021,12 +1021,12 @@ dump(off_t current_offset, off_t end_offset) | |||
1021 | l_c_m = get_lcm(); | 1021 | l_c_m = get_lcm(); |
1022 | 1022 | ||
1023 | /* Make bytes_to_write the smallest multiple of l_c_m that | 1023 | /* Make bytes_to_write the smallest multiple of l_c_m that |
1024 | is at least as large as n_bytes_read. */ | 1024 | is at least as large as n_bytes_read. */ |
1025 | bytes_to_write = l_c_m * ((n_bytes_read + l_c_m - 1) / l_c_m); | 1025 | bytes_to_write = l_c_m * ((n_bytes_read + l_c_m - 1) / l_c_m); |
1026 | 1026 | ||
1027 | memset(block[idx] + n_bytes_read, 0, bytes_to_write - n_bytes_read); | 1027 | memset(block[idx] + n_bytes_read, 0, bytes_to_write - n_bytes_read); |
1028 | write_block(current_offset, bytes_to_write, | 1028 | write_block(current_offset, bytes_to_write, |
1029 | block[idx ^ 1], block[idx]); | 1029 | block[idx ^ 1], block[idx]); |
1030 | current_offset += n_bytes_read; | 1030 | current_offset += n_bytes_read; |
1031 | } | 1031 | } |
1032 | 1032 | ||
diff --git a/coreutils/stat.c b/coreutils/stat.c index e38c8f6b0..c8677ebaa 100644 --- a/coreutils/stat.c +++ b/coreutils/stat.c | |||
@@ -591,37 +591,43 @@ static bool do_stat(const char *filename, const char *format) | |||
591 | # else | 591 | # else |
592 | if (option_mask32 & OPT_TERSE) { | 592 | if (option_mask32 & OPT_TERSE) { |
593 | format = (option_mask32 & OPT_SELINUX ? | 593 | format = (option_mask32 & OPT_SELINUX ? |
594 | "%n %s %b %f %u %g %D %i %h %t %T %X %Y %Z %o %C\n": | 594 | "%n %s %b %f %u %g %D %i %h %t %T %X %Y %Z %o %C\n" |
595 | "%n %s %b %f %u %g %D %i %h %t %T %X %Y %Z %o\n"); | 595 | : |
596 | "%n %s %b %f %u %g %D %i %h %t %T %X %Y %Z %o\n" | ||
597 | ); | ||
596 | } else { | 598 | } else { |
597 | if (S_ISBLK(statbuf.st_mode) || S_ISCHR(statbuf.st_mode)) { | 599 | if (S_ISBLK(statbuf.st_mode) || S_ISCHR(statbuf.st_mode)) { |
598 | format = (option_mask32 & OPT_SELINUX ? | 600 | format = (option_mask32 & OPT_SELINUX ? |
599 | " File: %N\n" | 601 | " File: %N\n" |
600 | " Size: %-10s\tBlocks: %-10b IO Block: %-6o %F\n" | 602 | " Size: %-10s\tBlocks: %-10b IO Block: %-6o %F\n" |
601 | "Device: %Dh/%dd\tInode: %-10i Links: %-5h" | 603 | "Device: %Dh/%dd\tInode: %-10i Links: %-5h" |
602 | " Device type: %t,%T\n" | 604 | " Device type: %t,%T\n" |
603 | "Access: (%04a/%10.10A) Uid: (%5u/%8U) Gid: (%5g/%8G)\n" | 605 | "Access: (%04a/%10.10A) Uid: (%5u/%8U) Gid: (%5g/%8G)\n" |
604 | " S_Context: %C\n" | 606 | " S_Context: %C\n" |
605 | "Access: %x\n" "Modify: %y\n" "Change: %z\n": | 607 | "Access: %x\n" "Modify: %y\n" "Change: %z\n" |
606 | " File: %N\n" | 608 | : |
607 | " Size: %-10s\tBlocks: %-10b IO Block: %-6o %F\n" | 609 | " File: %N\n" |
608 | "Device: %Dh/%dd\tInode: %-10i Links: %-5h" | 610 | " Size: %-10s\tBlocks: %-10b IO Block: %-6o %F\n" |
609 | " Device type: %t,%T\n" | 611 | "Device: %Dh/%dd\tInode: %-10i Links: %-5h" |
610 | "Access: (%04a/%10.10A) Uid: (%5u/%8U) Gid: (%5g/%8G)\n" | 612 | " Device type: %t,%T\n" |
611 | "Access: %x\n" "Modify: %y\n" "Change: %z\n"); | 613 | "Access: (%04a/%10.10A) Uid: (%5u/%8U) Gid: (%5g/%8G)\n" |
614 | "Access: %x\n" "Modify: %y\n" "Change: %z\n" | ||
615 | ); | ||
612 | } else { | 616 | } else { |
613 | format = (option_mask32 & OPT_SELINUX ? | 617 | format = (option_mask32 & OPT_SELINUX ? |
614 | " File: %N\n" | 618 | " File: %N\n" |
615 | " Size: %-10s\tBlocks: %-10b IO Block: %-6o %F\n" | 619 | " Size: %-10s\tBlocks: %-10b IO Block: %-6o %F\n" |
616 | "Device: %Dh/%dd\tInode: %-10i Links: %h\n" | 620 | "Device: %Dh/%dd\tInode: %-10i Links: %h\n" |
617 | "Access: (%04a/%10.10A) Uid: (%5u/%8U) Gid: (%5g/%8G)\n" | 621 | "Access: (%04a/%10.10A) Uid: (%5u/%8U) Gid: (%5g/%8G)\n" |
618 | "S_Context: %C\n" | 622 | "S_Context: %C\n" |
619 | "Access: %x\n" "Modify: %y\n" "Change: %z\n": | 623 | "Access: %x\n" "Modify: %y\n" "Change: %z\n" |
620 | " File: %N\n" | 624 | : |
621 | " Size: %-10s\tBlocks: %-10b IO Block: %-6o %F\n" | 625 | " File: %N\n" |
622 | "Device: %Dh/%dd\tInode: %-10i Links: %h\n" | 626 | " Size: %-10s\tBlocks: %-10b IO Block: %-6o %F\n" |
623 | "Access: (%04a/%10.10A) Uid: (%5u/%8U) Gid: (%5g/%8G)\n" | 627 | "Device: %Dh/%dd\tInode: %-10i Links: %h\n" |
624 | "Access: %x\n" "Modify: %y\n" "Change: %z\n"); | 628 | "Access: (%04a/%10.10A) Uid: (%5u/%8U) Gid: (%5g/%8G)\n" |
629 | "Access: %x\n" "Modify: %y\n" "Change: %z\n" | ||
630 | ); | ||
625 | } | 631 | } |
626 | } | 632 | } |
627 | # endif | 633 | # endif |
diff --git a/coreutils/stty.c b/coreutils/stty.c index 0668cf7be..96754dd84 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c | |||
@@ -1056,7 +1056,7 @@ static void do_display(const struct termios *mode, int all) | |||
1056 | } | 1056 | } |
1057 | #endif | 1057 | #endif |
1058 | wrapf("%s = %s;", nth_string(control_name, i), | 1058 | wrapf("%s = %s;", nth_string(control_name, i), |
1059 | visible(mode->c_cc[control_info[i].offset])); | 1059 | visible(mode->c_cc[control_info[i].offset])); |
1060 | } | 1060 | } |
1061 | #if VEOF == VMIN | 1061 | #if VEOF == VMIN |
1062 | if ((mode->c_lflag & ICANON) == 0) | 1062 | if ((mode->c_lflag & ICANON) == 0) |
diff --git a/coreutils/test.c b/coreutils/test.c index 0bc008e7c..4df505a05 100644 --- a/coreutils/test.c +++ b/coreutils/test.c | |||
@@ -610,7 +610,7 @@ static int test_eaccess(char *path, int mode) | |||
610 | return 0; | 610 | return 0; |
611 | 611 | ||
612 | /* Root can execute any file that has any one of the execute | 612 | /* Root can execute any file that has any one of the execute |
613 | bits set. */ | 613 | * bits set. */ |
614 | if (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) | 614 | if (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) |
615 | return 0; | 615 | return 0; |
616 | } | 616 | } |
diff --git a/editors/awk.c b/editors/awk.c index 42f6ef866..3224788c0 100644 --- a/editors/awk.c +++ b/editors/awk.c | |||
@@ -155,7 +155,7 @@ typedef struct tsplitter_s { | |||
155 | 155 | ||
156 | /* simple token classes */ | 156 | /* simple token classes */ |
157 | /* Order and hex values are very important!!! See next_token() */ | 157 | /* Order and hex values are very important!!! See next_token() */ |
158 | #define TC_SEQSTART 1 /* ( */ | 158 | #define TC_SEQSTART 1 /* ( */ |
159 | #define TC_SEQTERM (1 << 1) /* ) */ | 159 | #define TC_SEQTERM (1 << 1) /* ) */ |
160 | #define TC_REGEXP (1 << 2) /* /.../ */ | 160 | #define TC_REGEXP (1 << 2) /* /.../ */ |
161 | #define TC_OUTRDR (1 << 3) /* | > >> */ | 161 | #define TC_OUTRDR (1 << 3) /* | > >> */ |
diff --git a/editors/diff.c b/editors/diff.c index 3a3334640..b08ded3a1 100644 --- a/editors/diff.c +++ b/editors/diff.c | |||
@@ -843,7 +843,7 @@ static void diffdir(char *p[2], const char *s_start) | |||
843 | * add_to_dirlist will remove it. */ | 843 | * add_to_dirlist will remove it. */ |
844 | list[i].len = strlen(p[i]); | 844 | list[i].len = strlen(p[i]); |
845 | recursive_action(p[i], ACTION_RECURSE | ACTION_FOLLOWLINKS, | 845 | recursive_action(p[i], ACTION_RECURSE | ACTION_FOLLOWLINKS, |
846 | add_to_dirlist, skip_dir, &list[i], 0); | 846 | add_to_dirlist, skip_dir, &list[i], 0); |
847 | /* Sort dl alphabetically. | 847 | /* Sort dl alphabetically. |
848 | * GNU diff does this ignoring any number of trailing dots. | 848 | * GNU diff does this ignoring any number of trailing dots. |
849 | * We don't, so for us dotted files almost always are | 849 | * We don't, so for us dotted files almost always are |
diff --git a/editors/vi.c b/editors/vi.c index e09e0d9c7..b1776c668 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -14,7 +14,7 @@ | |||
14 | * add :help command | 14 | * add :help command |
15 | * :map macros | 15 | * :map macros |
16 | * if mark[] values were line numbers rather than pointers | 16 | * if mark[] values were line numbers rather than pointers |
17 | * it would be easier to change the mark when add/delete lines | 17 | * it would be easier to change the mark when add/delete lines |
18 | * More intelligence in refresh() | 18 | * More intelligence in refresh() |
19 | * ":r !cmd" and "!cmd" to filter text through an external command | 19 | * ":r !cmd" and "!cmd" to filter text through an external command |
20 | * A true "undo" facility | 20 | * A true "undo" facility |
diff --git a/findutils/grep.c b/findutils/grep.c index f14d6e6c1..de4fcf5ad 100644 --- a/findutils/grep.c +++ b/findutils/grep.c | |||
@@ -638,7 +638,7 @@ int grep_main(int argc UNUSED_PARAM, char **argv) | |||
638 | 638 | ||
639 | if (opts & OPT_C) { | 639 | if (opts & OPT_C) { |
640 | /* -C unsets prev -A and -B, but following -A or -B | 640 | /* -C unsets prev -A and -B, but following -A or -B |
641 | may override it */ | 641 | * may override it */ |
642 | if (!(opts & OPT_A)) /* not overridden */ | 642 | if (!(opts & OPT_A)) /* not overridden */ |
643 | lines_after = Copt; | 643 | lines_after = Copt; |
644 | if (!(opts & OPT_B)) /* not overridden */ | 644 | if (!(opts & OPT_B)) /* not overridden */ |
diff --git a/init/init.c b/init/init.c index 724894698..b84bdccbc 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -520,7 +520,7 @@ static pid_t run(const struct init_action *a) | |||
520 | 520 | ||
521 | /* Log the process name and args */ | 521 | /* Log the process name and args */ |
522 | message(L_LOG, "starting pid %d, tty '%s': '%s'", | 522 | message(L_LOG, "starting pid %d, tty '%s': '%s'", |
523 | getpid(), a->terminal, a->command); | 523 | getpid(), a->terminal, a->command); |
524 | 524 | ||
525 | /* Now run it. The new program will take over this PID, | 525 | /* Now run it. The new program will take over this PID, |
526 | * so nothing further in init.c should be run. */ | 526 | * so nothing further in init.c should be run. */ |
diff --git a/libbb/inet_common.c b/libbb/inet_common.c index 7208db9ea..0f4fca1a2 100644 --- a/libbb/inet_common.c +++ b/libbb/inet_common.c | |||
@@ -97,7 +97,7 @@ char* FAST_FUNC INET_rresolve(struct sockaddr_in *s_in, int numeric, uint32_t ne | |||
97 | if (s_in->sin_family != AF_INET) { | 97 | if (s_in->sin_family != AF_INET) { |
98 | #ifdef DEBUG | 98 | #ifdef DEBUG |
99 | bb_error_msg("rresolve: unsupported address family %d!", | 99 | bb_error_msg("rresolve: unsupported address family %d!", |
100 | s_in->sin_family); | 100 | s_in->sin_family); |
101 | #endif | 101 | #endif |
102 | errno = EAFNOSUPPORT; | 102 | errno = EAFNOSUPPORT; |
103 | return NULL; | 103 | return NULL; |
@@ -195,7 +195,7 @@ char* FAST_FUNC INET6_rresolve(struct sockaddr_in6 *sin6, int numeric) | |||
195 | if (sin6->sin6_family != AF_INET6) { | 195 | if (sin6->sin6_family != AF_INET6) { |
196 | #ifdef DEBUG | 196 | #ifdef DEBUG |
197 | bb_error_msg("rresolve: unsupported address family %d!", | 197 | bb_error_msg("rresolve: unsupported address family %d!", |
198 | sin6->sin6_family); | 198 | sin6->sin6_family); |
199 | #endif | 199 | #endif |
200 | errno = EAFNOSUPPORT; | 200 | errno = EAFNOSUPPORT; |
201 | return NULL; | 201 | return NULL; |
diff --git a/libbb/loop.c b/libbb/loop.c index b3a520848..823fba079 100644 --- a/libbb/loop.c +++ b/libbb/loop.c | |||
@@ -150,9 +150,9 @@ int FAST_FUNC set_loop(char **device, const char *file, unsigned long long offse | |||
150 | } | 150 | } |
151 | 151 | ||
152 | /* If this block device already set up right, re-use it. | 152 | /* If this block device already set up right, re-use it. |
153 | (Yes this is racy, but associating two loop devices with the same | 153 | * (Yes this is racy, but associating two loop devices with the same |
154 | file isn't pretty either. In general, mounting the same file twice | 154 | * file isn't pretty either. In general, mounting the same file twice |
155 | without using losetup manually is problematic.) | 155 | * without using losetup manually is problematic.) |
156 | */ | 156 | */ |
157 | } else | 157 | } else |
158 | if (strcmp(file, (char *)loopinfo.lo_file_name) != 0 | 158 | if (strcmp(file, (char *)loopinfo.lo_file_name) != 0 |
diff --git a/libbb/procps.c b/libbb/procps.c index b4557e797..5b68d3431 100644 --- a/libbb/procps.c +++ b/libbb/procps.c | |||
@@ -180,7 +180,7 @@ static char *skip_fields(char *str, int count) | |||
180 | 180 | ||
181 | #if ENABLE_FEATURE_TOPMEM || ENABLE_PMAP | 181 | #if ENABLE_FEATURE_TOPMEM || ENABLE_PMAP |
182 | int FAST_FUNC procps_read_smaps(pid_t pid, struct smaprec *total, | 182 | int FAST_FUNC procps_read_smaps(pid_t pid, struct smaprec *total, |
183 | void (*cb)(struct smaprec *, void *), void *data) | 183 | void (*cb)(struct smaprec *, void *), void *data) |
184 | { | 184 | { |
185 | FILE *file; | 185 | FILE *file; |
186 | struct smaprec currec; | 186 | struct smaprec currec; |
diff --git a/libbb/selinux_common.c b/libbb/selinux_common.c index 62910e285..c2585557f 100644 --- a/libbb/selinux_common.c +++ b/libbb/selinux_common.c | |||
@@ -10,7 +10,7 @@ | |||
10 | #include <selinux/context.h> | 10 | #include <selinux/context.h> |
11 | 11 | ||
12 | context_t FAST_FUNC set_security_context_component(security_context_t cur_context, | 12 | context_t FAST_FUNC set_security_context_component(security_context_t cur_context, |
13 | char *user, char *role, char *type, char *range) | 13 | char *user, char *role, char *type, char *range) |
14 | { | 14 | { |
15 | context_t con = context_new(cur_context); | 15 | context_t con = context_new(cur_context); |
16 | if (!con) | 16 | if (!con) |
diff --git a/libpwdgrp/pwd_grp.c b/libpwdgrp/pwd_grp.c index edf53f350..2060d7811 100644 --- a/libpwdgrp/pwd_grp.c +++ b/libpwdgrp/pwd_grp.c | |||
@@ -300,8 +300,8 @@ struct group *getgrgid(gid_t gid) | |||
300 | * to have been created as a reentrant version of the non-standard | 300 | * to have been created as a reentrant version of the non-standard |
301 | * functions getspuid. Why getspuid was added, I do not know. */ | 301 | * functions getspuid. Why getspuid was added, I do not know. */ |
302 | int getspuid_r(uid_t uid, struct spwd *__restrict resultbuf, | 302 | int getspuid_r(uid_t uid, struct spwd *__restrict resultbuf, |
303 | char *__restrict buffer, size_t buflen, | 303 | char *__restrict buffer, size_t buflen, |
304 | struct spwd **__restrict result) | 304 | struct spwd **__restrict result) |
305 | { | 305 | { |
306 | int rv; | 306 | int rv; |
307 | struct passwd *pp; | 307 | struct passwd *pp; |
@@ -403,8 +403,8 @@ void endpwent(void) | |||
403 | 403 | ||
404 | 404 | ||
405 | int getpwent_r(struct passwd *__restrict resultbuf, | 405 | int getpwent_r(struct passwd *__restrict resultbuf, |
406 | char *__restrict buffer, size_t buflen, | 406 | char *__restrict buffer, size_t buflen, |
407 | struct passwd **__restrict result) | 407 | struct passwd **__restrict result) |
408 | { | 408 | { |
409 | int rv; | 409 | int rv; |
410 | 410 | ||
@@ -451,8 +451,8 @@ void endgrent(void) | |||
451 | } | 451 | } |
452 | 452 | ||
453 | int getgrent_r(struct group *__restrict resultbuf, | 453 | int getgrent_r(struct group *__restrict resultbuf, |
454 | char *__restrict buffer, size_t buflen, | 454 | char *__restrict buffer, size_t buflen, |
455 | struct group **__restrict result) | 455 | struct group **__restrict result) |
456 | { | 456 | { |
457 | int rv; | 457 | int rv; |
458 | 458 | ||
@@ -501,7 +501,7 @@ void endspent(void) | |||
501 | } | 501 | } |
502 | 502 | ||
503 | int getspent_r(struct spwd *resultbuf, char *buffer, | 503 | int getspent_r(struct spwd *resultbuf, char *buffer, |
504 | size_t buflen, struct spwd **result) | 504 | size_t buflen, struct spwd **result) |
505 | { | 505 | { |
506 | int rv; | 506 | int rv; |
507 | 507 | ||
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c index 6493fe4f1..2e87261cf 100644 --- a/miscutils/devfsd.c +++ b/miscutils/devfsd.c | |||
@@ -219,7 +219,7 @@ static void action_execute(const struct devfsd_notify_struct *, const struct con | |||
219 | const regmatch_t *, unsigned); | 219 | const regmatch_t *, unsigned); |
220 | static void action_modload(const struct devfsd_notify_struct *info, const struct config_entry_struct *entry); | 220 | static void action_modload(const struct devfsd_notify_struct *info, const struct config_entry_struct *entry); |
221 | static void action_copy(const struct devfsd_notify_struct *, const struct config_entry_struct *, | 221 | static void action_copy(const struct devfsd_notify_struct *, const struct config_entry_struct *, |
222 | const regmatch_t *, unsigned); | 222 | const regmatch_t *, unsigned); |
223 | static void action_compat(const struct devfsd_notify_struct *, unsigned); | 223 | static void action_compat(const struct devfsd_notify_struct *, unsigned); |
224 | static void free_config(void); | 224 | static void free_config(void); |
225 | static void restore(char *spath, struct stat source_stat, int rootlen); | 225 | static void restore(char *spath, struct stat source_stat, int rootlen); |
@@ -229,12 +229,12 @@ static void signal_handler(int); | |||
229 | static const char *get_variable(const char *, void *); | 229 | static const char *get_variable(const char *, void *); |
230 | static int make_dir_tree(const char *); | 230 | static int make_dir_tree(const char *); |
231 | static int expand_expression(char *, unsigned, const char *, const char *(*)(const char *, void *), void *, | 231 | static int expand_expression(char *, unsigned, const char *, const char *(*)(const char *, void *), void *, |
232 | const char *, const regmatch_t *, unsigned); | 232 | const char *, const regmatch_t *, unsigned); |
233 | static void expand_regexp(char *, size_t, const char *, const char *, const regmatch_t *, unsigned); | 233 | static void expand_regexp(char *, size_t, const char *, const char *, const regmatch_t *, unsigned); |
234 | static const char *expand_variable( char *, unsigned, unsigned *, const char *, | 234 | static const char *expand_variable( char *, unsigned, unsigned *, const char *, |
235 | const char *(*)(const char *, void *), void *); | 235 | const char *(*)(const char *, void *), void *); |
236 | static const char *get_variable_v2(const char *, const char *(*)(const char *, void *), void *); | 236 | static const char *get_variable_v2(const char *, const char *(*)(const char *, void *), void *); |
237 | static char get_old_ide_name(unsigned , unsigned); | 237 | static char get_old_ide_name(unsigned, unsigned); |
238 | static char *write_old_sd_name(char *, unsigned, unsigned, const char *); | 238 | static char *write_old_sd_name(char *, unsigned, unsigned, const char *); |
239 | 239 | ||
240 | /* busybox functions */ | 240 | /* busybox functions */ |
@@ -580,9 +580,9 @@ static void process_config_line(const char *line, unsigned long *event_mask) | |||
580 | /*This action will pass "/dev/$devname"(i.e. "/dev/" prefixed to | 580 | /*This action will pass "/dev/$devname"(i.e. "/dev/" prefixed to |
581 | the device name) to the module loading facility. In addition, | 581 | the device name) to the module loading facility. In addition, |
582 | the /etc/modules.devfs configuration file is used.*/ | 582 | the /etc/modules.devfs configuration file is used.*/ |
583 | if (ENABLE_DEVFSD_MODLOAD) | 583 | if (ENABLE_DEVFSD_MODLOAD) |
584 | new->action.what = AC_MODLOAD; | 584 | new->action.what = AC_MODLOAD; |
585 | break; | 585 | break; |
586 | case 6: /* EXECUTE */ | 586 | case 6: /* EXECUTE */ |
587 | new->action.what = AC_EXECUTE; | 587 | new->action.what = AC_EXECUTE; |
588 | num_args -= 3; | 588 | num_args -= 3; |
@@ -750,7 +750,7 @@ static void action_permissions(const struct devfsd_notify_struct *info, | |||
750 | } /* End Function action_permissions */ | 750 | } /* End Function action_permissions */ |
751 | 751 | ||
752 | static void action_modload(const struct devfsd_notify_struct *info, | 752 | static void action_modload(const struct devfsd_notify_struct *info, |
753 | const struct config_entry_struct *entry UNUSED_PARAM) | 753 | const struct config_entry_struct *entry UNUSED_PARAM) |
754 | /* [SUMMARY] Load a module. | 754 | /* [SUMMARY] Load a module. |
755 | <info> The devfs change. | 755 | <info> The devfs change. |
756 | <entry> The config file entry. | 756 | <entry> The config file entry. |
@@ -771,8 +771,8 @@ static void action_modload(const struct devfsd_notify_struct *info, | |||
771 | } /* End Function action_modload */ | 771 | } /* End Function action_modload */ |
772 | 772 | ||
773 | static void action_execute(const struct devfsd_notify_struct *info, | 773 | static void action_execute(const struct devfsd_notify_struct *info, |
774 | const struct config_entry_struct *entry, | 774 | const struct config_entry_struct *entry, |
775 | const regmatch_t *regexpr, unsigned int numexpr) | 775 | const regmatch_t *regexpr, unsigned int numexpr) |
776 | /* [SUMMARY] Execute a programme. | 776 | /* [SUMMARY] Execute a programme. |
777 | <info> The devfs change. | 777 | <info> The devfs change. |
778 | <entry> The config file entry. | 778 | <entry> The config file entry. |
@@ -1641,10 +1641,10 @@ st_expr_expand_out: | |||
1641 | /* Private functions follow */ | 1641 | /* Private functions follow */ |
1642 | 1642 | ||
1643 | static const char *expand_variable(char *buffer, unsigned int length, | 1643 | static const char *expand_variable(char *buffer, unsigned int length, |
1644 | unsigned int *out_pos, const char *input, | 1644 | unsigned int *out_pos, const char *input, |
1645 | const char *(*func)(const char *variable, | 1645 | const char *(*func)(const char *variable, |
1646 | void *info), | 1646 | void *info), |
1647 | void *info) | 1647 | void *info) |
1648 | /* [SUMMARY] Expand a variable. | 1648 | /* [SUMMARY] Expand a variable. |
1649 | <buffer> The buffer to write to. | 1649 | <buffer> The buffer to write to. |
1650 | <length> The length of the output buffer. | 1650 | <length> The length of the output buffer. |
@@ -1786,8 +1786,8 @@ expand_variable_out: | |||
1786 | 1786 | ||
1787 | 1787 | ||
1788 | static const char *get_variable_v2(const char *variable, | 1788 | static const char *get_variable_v2(const char *variable, |
1789 | const char *(*func)(const char *variable, void *info), | 1789 | const char *(*func)(const char *variable, void *info), |
1790 | void *info) | 1790 | void *info) |
1791 | /* [SUMMARY] Get a variable from the environment or . | 1791 | /* [SUMMARY] Get a variable from the environment or . |
1792 | <variable> The variable name. | 1792 | <variable> The variable name. |
1793 | <func> A function which will be used to get the variable. If this returns | 1793 | <func> A function which will be used to get the variable. If this returns |
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index a97f3e7b5..9c6dbf468 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c | |||
@@ -1022,8 +1022,8 @@ static void identify(uint16_t *val) | |||
1022 | } | 1022 | } |
1023 | if ((like_std > 3) && (val[CMDS_SUPP_1] & 0x0008)) { | 1023 | if ((like_std > 3) && (val[CMDS_SUPP_1] & 0x0008)) { |
1024 | /* We print out elsewhere whether the APM feature is enabled or | 1024 | /* We print out elsewhere whether the APM feature is enabled or |
1025 | not. If it's not enabled, let's not repeat the info; just print | 1025 | * not. If it's not enabled, let's not repeat the info; just print |
1026 | nothing here. */ | 1026 | * nothing here. */ |
1027 | printf("\tAdvancedPM level: "); | 1027 | printf("\tAdvancedPM level: "); |
1028 | if ((val[ADV_PWR] & 0xFF00) == 0x4000) { | 1028 | if ((val[ADV_PWR] & 0xFF00) == 0x4000) { |
1029 | uint8_t apm_level = val[ADV_PWR] & 0x00FF; | 1029 | uint8_t apm_level = val[ADV_PWR] & 0x00FF; |
diff --git a/miscutils/last_fancy.c b/miscutils/last_fancy.c index dc09b65fb..f687d7e16 100644 --- a/miscutils/last_fancy.c +++ b/miscutils/last_fancy.c | |||
@@ -93,14 +93,14 @@ static void show_entry(struct utmp *ut, int state, time_t dur_secs) | |||
93 | } | 93 | } |
94 | 94 | ||
95 | printf(HEADER_FORMAT, | 95 | printf(HEADER_FORMAT, |
96 | ut->ut_user, | 96 | ut->ut_user, |
97 | ut->ut_line, | 97 | ut->ut_line, |
98 | show_wide ? INET6_ADDRSTRLEN : INET_ADDRSTRLEN, | 98 | show_wide ? INET6_ADDRSTRLEN : INET_ADDRSTRLEN, |
99 | show_wide ? INET6_ADDRSTRLEN : INET_ADDRSTRLEN, | 99 | show_wide ? INET6_ADDRSTRLEN : INET_ADDRSTRLEN, |
100 | ut->ut_host, | 100 | ut->ut_host, |
101 | login_time, | 101 | login_time, |
102 | logout_str, | 102 | logout_str, |
103 | duration_str); | 103 | duration_str); |
104 | } | 104 | } |
105 | 105 | ||
106 | static int get_ut_type(struct utmp *ut) | 106 | static int get_ut_type(struct utmp *ut) |
diff --git a/modutils/rmmod.c b/modutils/rmmod.c index 4a4a91982..f13ff9eb6 100644 --- a/modutils/rmmod.c +++ b/modutils/rmmod.c | |||
@@ -60,7 +60,7 @@ int rmmod_main(int argc UNUSED_PARAM, char **argv) | |||
60 | filename2modname(bname, modname); | 60 | filename2modname(bname, modname); |
61 | if (bb_delete_module(modname, flags)) | 61 | if (bb_delete_module(modname, flags)) |
62 | bb_error_msg_and_die("can't unload '%s': %s", | 62 | bb_error_msg_and_die("can't unload '%s': %s", |
63 | modname, moderror(errno)); | 63 | modname, moderror(errno)); |
64 | } | 64 | } |
65 | 65 | ||
66 | return EXIT_SUCCESS; | 66 | return EXIT_SUCCESS; |
diff --git a/networking/brctl.c b/networking/brctl.c index b4f5809df..207b069aa 100644 --- a/networking/brctl.c +++ b/networking/brctl.c | |||
@@ -133,9 +133,9 @@ int brctl_main(int argc UNUSED_PARAM, char **argv) | |||
133 | 133 | ||
134 | enum { ARG_addbr = 0, ARG_delbr, ARG_addif, ARG_delif | 134 | enum { ARG_addbr = 0, ARG_delbr, ARG_addif, ARG_delif |
135 | IF_FEATURE_BRCTL_FANCY(, | 135 | IF_FEATURE_BRCTL_FANCY(, |
136 | ARG_stp, | 136 | ARG_stp, |
137 | ARG_setageing, ARG_setfd, ARG_sethello, ARG_setmaxage, | 137 | ARG_setageing, ARG_setfd, ARG_sethello, ARG_setmaxage, |
138 | ARG_setpathcost, ARG_setportprio, ARG_setbridgeprio | 138 | ARG_setpathcost, ARG_setportprio, ARG_setbridgeprio |
139 | ) | 139 | ) |
140 | IF_FEATURE_BRCTL_SHOW(, ARG_show) | 140 | IF_FEATURE_BRCTL_SHOW(, ARG_show) |
141 | }; | 141 | }; |
@@ -285,7 +285,7 @@ int brctl_main(int argc UNUSED_PARAM, char **argv) | |||
285 | bb_error_msg_and_die(bb_msg_invalid_arg, *argv, "port"); | 285 | bb_error_msg_and_die(bb_msg_invalid_arg, *argv, "port"); |
286 | memset(ifidx, 0, sizeof ifidx); | 286 | memset(ifidx, 0, sizeof ifidx); |
287 | arm_ioctl(args, BRCTL_GET_PORT_LIST, (unsigned long)ifidx, | 287 | arm_ioctl(args, BRCTL_GET_PORT_LIST, (unsigned long)ifidx, |
288 | MAX_PORTS); | 288 | MAX_PORTS); |
289 | xioctl(fd, SIOCDEVPRIVATE, &ifr); | 289 | xioctl(fd, SIOCDEVPRIVATE, &ifr); |
290 | for (i = 0; i < MAX_PORTS; i++) { | 290 | for (i = 0; i < MAX_PORTS; i++) { |
291 | if (ifidx[i] == port) { | 291 | if (ifidx[i] == port) { |
diff --git a/networking/ether-wake.c b/networking/ether-wake.c index a73b0baea..bf09cd529 100644 --- a/networking/ether-wake.c +++ b/networking/ether-wake.c | |||
@@ -49,9 +49,9 @@ | |||
49 | * Copyright 1999-2003 Donald Becker and Scyld Computing Corporation. | 49 | * Copyright 1999-2003 Donald Becker and Scyld Computing Corporation. |
50 | * | 50 | * |
51 | * The author may be reached as becker@scyld, or C/O | 51 | * The author may be reached as becker@scyld, or C/O |
52 | * Scyld Computing Corporation | 52 | * Scyld Computing Corporation |
53 | * 914 Bay Ridge Road, Suite 220 | 53 | * 914 Bay Ridge Road, Suite 220 |
54 | * Annapolis MD 21403 | 54 | * Annapolis MD 21403 |
55 | * | 55 | * |
56 | * Notes: | 56 | * Notes: |
57 | * On some systems dropping root capability allows the process to be | 57 | * On some systems dropping root capability allows the process to be |
@@ -113,7 +113,7 @@ void bb_debug_dump_packet(unsigned char *outpack, int pktsize) | |||
113 | * Host name | 113 | * Host name |
114 | * IP address string | 114 | * IP address string |
115 | * MAC address string | 115 | * MAC address string |
116 | */ | 116 | */ |
117 | static void get_dest_addr(const char *hostid, struct ether_addr *eaddr) | 117 | static void get_dest_addr(const char *hostid, struct ether_addr *eaddr) |
118 | { | 118 | { |
119 | struct ether_addr *eap; | 119 | struct ether_addr *eap; |
diff --git a/networking/ifenslave.c b/networking/ifenslave.c index f7f87bc55..c3be8180b 100644 --- a/networking/ifenslave.c +++ b/networking/ifenslave.c | |||
@@ -270,7 +270,7 @@ static int set_if_addr(char *master_ifname, char *slave_ifname) | |||
270 | if (res < 0) { | 270 | if (res < 0) { |
271 | ifr.ifr_addr.sa_family = AF_INET; | 271 | ifr.ifr_addr.sa_family = AF_INET; |
272 | memset(ifr.ifr_addr.sa_data, 0, | 272 | memset(ifr.ifr_addr.sa_data, 0, |
273 | sizeof(ifr.ifr_addr.sa_data)); | 273 | sizeof(ifr.ifr_addr.sa_data)); |
274 | } | 274 | } |
275 | 275 | ||
276 | res = set_ifrname_and_do_ioctl(ifra[i].s_ioctl, &ifr, slave_ifname); | 276 | res = set_ifrname_and_do_ioctl(ifra[i].s_ioctl, &ifr, slave_ifname); |
diff --git a/networking/interface.c b/networking/interface.c index 4b9b9485d..9ae8b3f03 100644 --- a/networking/interface.c +++ b/networking/interface.c | |||
@@ -27,7 +27,7 @@ | |||
27 | * {1.34} - 19980630 - Arnaldo Carvalho de Melo <acme@conectiva.com.br> | 27 | * {1.34} - 19980630 - Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
28 | * - gettext instead of catgets for i18n | 28 | * - gettext instead of catgets for i18n |
29 | * 10/1998 - Andi Kleen. Use interface list primitives. | 29 | * 10/1998 - Andi Kleen. Use interface list primitives. |
30 | * 20001008 - Bernd Eckenfels, Patch from RH for setting mtu | 30 | * 20001008 - Bernd Eckenfels, Patch from RH for setting mtu |
31 | * (default AF was wrong) | 31 | * (default AF was wrong) |
32 | */ | 32 | */ |
33 | 33 | ||
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c index b3748e8c5..3fd3f4478 100644 --- a/networking/libiproute/ipaddress.c +++ b/networking/libiproute/ipaddress.c | |||
@@ -314,14 +314,16 @@ static int FAST_FUNC print_addrinfo(const struct sockaddr_nl *who UNUSED_PARAM, | |||
314 | if (rta_tb[IFA_BROADCAST]) { | 314 | if (rta_tb[IFA_BROADCAST]) { |
315 | printf("brd %s ", | 315 | printf("brd %s ", |
316 | rt_addr_n2a(ifa->ifa_family, | 316 | rt_addr_n2a(ifa->ifa_family, |
317 | RTA_DATA(rta_tb[IFA_BROADCAST]), | 317 | RTA_DATA(rta_tb[IFA_BROADCAST]), |
318 | abuf, sizeof(abuf))); | 318 | abuf, sizeof(abuf)) |
319 | ); | ||
319 | } | 320 | } |
320 | if (rta_tb[IFA_ANYCAST]) { | 321 | if (rta_tb[IFA_ANYCAST]) { |
321 | printf("any %s ", | 322 | printf("any %s ", |
322 | rt_addr_n2a(ifa->ifa_family, | 323 | rt_addr_n2a(ifa->ifa_family, |
323 | RTA_DATA(rta_tb[IFA_ANYCAST]), | 324 | RTA_DATA(rta_tb[IFA_ANYCAST]), |
324 | abuf, sizeof(abuf))); | 325 | abuf, sizeof(abuf)) |
326 | ); | ||
325 | } | 327 | } |
326 | printf("scope %s ", rtnl_rtscope_n2a(ifa->ifa_scope, b1)); | 328 | printf("scope %s ", rtnl_rtscope_n2a(ifa->ifa_scope, b1)); |
327 | if (ifa->ifa_flags & IFA_F_SECONDARY) { | 329 | if (ifa->ifa_flags & IFA_F_SECONDARY) { |
diff --git a/networking/libiproute/iprule.c b/networking/libiproute/iprule.c index dd3265c7c..241a6bf9d 100644 --- a/networking/libiproute/iprule.c +++ b/networking/libiproute/iprule.c | |||
@@ -73,15 +73,17 @@ static int FAST_FUNC print_rule(const struct sockaddr_nl *who UNUSED_PARAM, | |||
73 | if (tb[RTA_SRC]) { | 73 | if (tb[RTA_SRC]) { |
74 | if (r->rtm_src_len != host_len) { | 74 | if (r->rtm_src_len != host_len) { |
75 | printf("%s/%u", rt_addr_n2a(r->rtm_family, | 75 | printf("%s/%u", rt_addr_n2a(r->rtm_family, |
76 | RTA_DATA(tb[RTA_SRC]), | 76 | RTA_DATA(tb[RTA_SRC]), |
77 | abuf, sizeof(abuf)), | 77 | abuf, sizeof(abuf)), |
78 | r->rtm_src_len | 78 | r->rtm_src_len |
79 | ); | 79 | ); |
80 | } else { | 80 | } else { |
81 | fputs(format_host(r->rtm_family, | 81 | fputs(format_host(r->rtm_family, |
82 | RTA_PAYLOAD(tb[RTA_SRC]), | 82 | RTA_PAYLOAD(tb[RTA_SRC]), |
83 | RTA_DATA(tb[RTA_SRC]), | 83 | RTA_DATA(tb[RTA_SRC]), |
84 | abuf, sizeof(abuf)), stdout); | 84 | abuf, sizeof(abuf)), |
85 | stdout | ||
86 | ); | ||
85 | } | 87 | } |
86 | } else if (r->rtm_src_len) { | 88 | } else if (r->rtm_src_len) { |
87 | printf("0/%d", r->rtm_src_len); | 89 | printf("0/%d", r->rtm_src_len); |
diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c index 5942feafc..2b651b926 100644 --- a/networking/libiproute/iptunnel.c +++ b/networking/libiproute/iptunnel.c | |||
@@ -438,7 +438,7 @@ static void print_tunnel(struct ip_tunnel_parm *p) | |||
438 | printf(" inherit"); | 438 | printf(" inherit"); |
439 | if (p->iph.tos & ~1) | 439 | if (p->iph.tos & ~1) |
440 | printf("%c%s ", p->iph.tos & 1 ? '/' : ' ', | 440 | printf("%c%s ", p->iph.tos & 1 ? '/' : ' ', |
441 | rtnl_dsfield_n2a(p->iph.tos & ~1, b1)); | 441 | rtnl_dsfield_n2a(p->iph.tos & ~1, b1)); |
442 | } | 442 | } |
443 | if (!(p->iph.frag_off & htons(IP_DF))) | 443 | if (!(p->iph.frag_off & htons(IP_DF))) |
444 | printf(" nopmtudisc"); | 444 | printf(" nopmtudisc"); |
diff --git a/networking/netstat.c b/networking/netstat.c index 9c239579f..c0c6ba501 100644 --- a/networking/netstat.c +++ b/networking/netstat.c | |||
@@ -187,7 +187,7 @@ static void prg_cache_add(long inode, char *name) | |||
187 | for (pnp = prg_hash + hi; (pn = *pnp) != NULL; pnp = &pn->next) { | 187 | for (pnp = prg_hash + hi; (pn = *pnp) != NULL; pnp = &pn->next) { |
188 | if (pn->inode == inode) { | 188 | if (pn->inode == inode) { |
189 | /* Some warning should be appropriate here | 189 | /* Some warning should be appropriate here |
190 | as we got multiple processes for one i-node */ | 190 | * as we got multiple processes for one i-node */ |
191 | return; | 191 | return; |
192 | } | 192 | } |
193 | } | 193 | } |
diff --git a/networking/route.c b/networking/route.c index 45f2be542..f662031e9 100644 --- a/networking/route.c +++ b/networking/route.c | |||
@@ -507,8 +507,8 @@ void FAST_FUNC bb_displayroutes(int noresolve, int netstatfmt) | |||
507 | while (1) { | 507 | while (1) { |
508 | int r; | 508 | int r; |
509 | r = fscanf(fp, "%63s%lx%lx%X%d%d%d%lx%d%d%d\n", | 509 | r = fscanf(fp, "%63s%lx%lx%X%d%d%d%lx%d%d%d\n", |
510 | devname, &d, &g, &flgs, &ref, &use, &metric, &m, | 510 | devname, &d, &g, &flgs, &ref, &use, &metric, &m, |
511 | &mtu, &win, &ir); | 511 | &mtu, &win, &ir); |
512 | if (r != 11) { | 512 | if (r != 11) { |
513 | if ((r < 0) && feof(fp)) { /* EOF with no (nonspace) chars read. */ | 513 | if ((r < 0) && feof(fp)) { /* EOF with no (nonspace) chars read. */ |
514 | break; | 514 | break; |
diff --git a/networking/tc.c b/networking/tc.c index 1574353a5..f968707a9 100644 --- a/networking/tc.c +++ b/networking/tc.c | |||
@@ -391,7 +391,7 @@ static int print_class(const struct sockaddr_nl *who UNUSED_PARAM, | |||
391 | printf("root "); | 391 | printf("root "); |
392 | else if (msg->tcm_parent) { | 392 | else if (msg->tcm_parent) { |
393 | classid = print_tc_classid(filter_qdisc ? | 393 | classid = print_tc_classid(filter_qdisc ? |
394 | TC_H_MIN(msg->tcm_parent) : msg->tcm_parent); | 394 | TC_H_MIN(msg->tcm_parent) : msg->tcm_parent); |
395 | printf("parent %s ", classid); | 395 | printf("parent %s ", classid); |
396 | if (ENABLE_FEATURE_CLEAN_UP) | 396 | if (ENABLE_FEATURE_CLEAN_UP) |
397 | free(classid); | 397 | free(classid); |
@@ -526,7 +526,8 @@ int tc_main(int argc UNUSED_PARAM, char **argv) | |||
526 | duparg(*argv, "handle"); | 526 | duparg(*argv, "handle"); |
527 | /* reject LONG_MIN || LONG_MAX */ | 527 | /* reject LONG_MIN || LONG_MAX */ |
528 | /* TODO: for fw | 528 | /* TODO: for fw |
529 | if ((slash = strchr(handle, '/')) != NULL) | 529 | slash = strchr(handle, '/'); |
530 | if (slash != NULL) | ||
530 | *slash = '\0'; | 531 | *slash = '\0'; |
531 | */ | 532 | */ |
532 | msg.tcm_handle = get_u32(*argv, "handle"); | 533 | msg.tcm_handle = get_u32(*argv, "handle"); |
diff --git a/networking/traceroute.c b/networking/traceroute.c index d197e5410..6b7b2ebdd 100644 --- a/networking/traceroute.c +++ b/networking/traceroute.c | |||
@@ -290,9 +290,10 @@ | |||
290 | #endif | 290 | #endif |
291 | 291 | ||
292 | 292 | ||
293 | #define OPT_STRING "FIlnrdvxt:i:m:p:q:s:w:z:f:" \ | 293 | #define OPT_STRING \ |
294 | IF_FEATURE_TRACEROUTE_SOURCE_ROUTE("g:") \ | 294 | "FIlnrdvxt:i:m:p:q:s:w:z:f:" \ |
295 | "4" IF_TRACEROUTE6("6") | 295 | IF_FEATURE_TRACEROUTE_SOURCE_ROUTE("g:") \ |
296 | "4" IF_TRACEROUTE6("6") | ||
296 | enum { | 297 | enum { |
297 | OPT_DONT_FRAGMNT = (1 << 0), /* F */ | 298 | OPT_DONT_FRAGMNT = (1 << 0), /* F */ |
298 | OPT_USE_ICMP = (1 << 1) * ENABLE_FEATURE_TRACEROUTE_USE_ICMP, /* I */ | 299 | OPT_USE_ICMP = (1 << 1) * ENABLE_FEATURE_TRACEROUTE_USE_ICMP, /* I */ |
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index f72217c84..086228871 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c | |||
@@ -1723,7 +1723,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv) | |||
1723 | #endif | 1723 | #endif |
1724 | /* enter bound state */ | 1724 | /* enter bound state */ |
1725 | timeout = lease_seconds / 2; | 1725 | timeout = lease_seconds / 2; |
1726 | temp_addr.s_addr = packet.yiaddr; | 1726 | temp_addr.s_addr = packet.yiaddr; |
1727 | bb_info_msg("Lease of %s obtained, lease time %u", | 1727 | bb_info_msg("Lease of %s obtained, lease time %u", |
1728 | inet_ntoa(temp_addr), (unsigned)lease_seconds); | 1728 | inet_ntoa(temp_addr), (unsigned)lease_seconds); |
1729 | requested_ip = packet.yiaddr; | 1729 | requested_ip = packet.yiaddr; |
diff --git a/procps/nmeter.c b/procps/nmeter.c index ed5479024..6a3b32743 100644 --- a/procps/nmeter.c +++ b/procps/nmeter.c | |||
@@ -271,7 +271,7 @@ static int rdval_loadavg(const char* p, ullong *vec, ...) | |||
271 | } | 271 | } |
272 | 272 | ||
273 | // Parses /proc/diskstats | 273 | // Parses /proc/diskstats |
274 | // 1 2 3 4 5 6(rd) 7 8 9 10(wr) 11 12 13 14 | 274 | // 1 2 3 4 5 6(rd) 7 8 9 10(wr) 11 12 13 14 |
275 | // 3 0 hda 51292 14441 841783 926052 25717 79650 843256 3029804 0 148459 3956933 | 275 | // 3 0 hda 51292 14441 841783 926052 25717 79650 843256 3029804 0 148459 3956933 |
276 | // 3 1 hda1 0 0 0 0 <- ignore if only 4 fields | 276 | // 3 1 hda1 0 0 0 0 <- ignore if only 4 fields |
277 | // Linux 3.0 (maybe earlier) started printing full stats for hda1 too. | 277 | // Linux 3.0 (maybe earlier) started printing full stats for hda1 too. |
diff --git a/procps/top.c b/procps/top.c index b08444a76..2908bd3e7 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -995,7 +995,7 @@ static unsigned handle_input(unsigned scan_mask, unsigned interval) | |||
995 | } | 995 | } |
996 | # if ENABLE_FEATURE_SHOW_THREADS | 996 | # if ENABLE_FEATURE_SHOW_THREADS |
997 | if (c == 'h' | 997 | if (c == 'h' |
998 | IF_FEATURE_TOPMEM(&& scan_mask != TOPMEM_MASK) | 998 | IF_FEATURE_TOPMEM(&& scan_mask != TOPMEM_MASK) |
999 | ) { | 999 | ) { |
1000 | scan_mask ^= PSSCAN_TASKS; | 1000 | scan_mask ^= PSSCAN_TASKS; |
1001 | continue; | 1001 | continue; |
diff --git a/runit/runsv.c b/runit/runsv.c index ad8d84f74..3e1a3c8e5 100644 --- a/runit/runsv.c +++ b/runit/runsv.c | |||
@@ -172,7 +172,7 @@ static void update_status(struct svdir *s) | |||
172 | } | 172 | } |
173 | close(fd); | 173 | close(fd); |
174 | if (rename_or_warn("supervise/pid.new", | 174 | if (rename_or_warn("supervise/pid.new", |
175 | s->islog ? "log/supervise/pid" : "log/supervise/pid"+4)) | 175 | s->islog ? "log/supervise/pid" : "log/supervise/pid"+4)) |
176 | return; | 176 | return; |
177 | pidchanged = 0; | 177 | pidchanged = 0; |
178 | } | 178 | } |
diff --git a/runit/svlogd.c b/runit/svlogd.c index b0ba21bb6..b7a0a6e71 100644 --- a/runit/svlogd.c +++ b/runit/svlogd.c | |||
@@ -601,12 +601,12 @@ static int buffer_pwrite(int n, char *s, unsigned len) | |||
601 | 601 | ||
602 | while (fchdir(ld->fddir) == -1) | 602 | while (fchdir(ld->fddir) == -1) |
603 | pause2cannot("change directory, want remove old logfile", | 603 | pause2cannot("change directory, want remove old logfile", |
604 | ld->name); | 604 | ld->name); |
605 | oldest[0] = 'A'; | 605 | oldest[0] = 'A'; |
606 | oldest[1] = oldest[27] = '\0'; | 606 | oldest[1] = oldest[27] = '\0'; |
607 | while (!(d = opendir("."))) | 607 | while (!(d = opendir("."))) |
608 | pause2cannot("open directory, want remove old logfile", | 608 | pause2cannot("open directory, want remove old logfile", |
609 | ld->name); | 609 | ld->name); |
610 | errno = 0; | 610 | errno = 0; |
611 | while ((f = readdir(d))) | 611 | while ((f = readdir(d))) |
612 | if ((f->d_name[0] == '@') && (strlen(f->d_name) == 27)) { | 612 | if ((f->d_name[0] == '@') && (strlen(f->d_name) == 27)) { |
diff --git a/selinux/chcon.c b/selinux/chcon.c index 88d0cfec6..f947c2c12 100644 --- a/selinux/chcon.c +++ b/selinux/chcon.c | |||
@@ -92,7 +92,7 @@ static int FAST_FUNC change_filedir_context( | |||
92 | 92 | ||
93 | if (specified_context == NULL) { | 93 | if (specified_context == NULL) { |
94 | context = set_security_context_component(file_context, | 94 | context = set_security_context_component(file_context, |
95 | user, role, type, range); | 95 | user, role, type, range); |
96 | if (!context) { | 96 | if (!context) { |
97 | bb_error_msg("can't compute security context from %s", file_context); | 97 | bb_error_msg("can't compute security context from %s", file_context); |
98 | goto skip; | 98 | goto skip; |
@@ -121,15 +121,15 @@ static int FAST_FUNC change_filedir_context( | |||
121 | } | 121 | } |
122 | if ((option_mask32 & OPT_VERBOSE) || ((option_mask32 & OPT_CHANHES) && !fail)) { | 122 | if ((option_mask32 & OPT_VERBOSE) || ((option_mask32 & OPT_CHANHES) && !fail)) { |
123 | printf(!fail | 123 | printf(!fail |
124 | ? "context of %s changed to %s\n" | 124 | ? "context of %s changed to %s\n" |
125 | : "can't change context of %s to %s\n", | 125 | : "can't change context of %s to %s\n", |
126 | fname, context_string); | 126 | fname, context_string); |
127 | } | 127 | } |
128 | if (!fail) { | 128 | if (!fail) { |
129 | rc = TRUE; | 129 | rc = TRUE; |
130 | } else if ((option_mask32 & OPT_QUIET) == 0) { | 130 | } else if ((option_mask32 & OPT_QUIET) == 0) { |
131 | bb_error_msg("can't change context of %s to %s", | 131 | bb_error_msg("can't change context of %s to %s", |
132 | fname, context_string); | 132 | fname, context_string); |
133 | } | 133 | } |
134 | } else if (option_mask32 & OPT_VERBOSE) { | 134 | } else if (option_mask32 & OPT_VERBOSE) { |
135 | printf("context of %s retained as %s\n", fname, context_string); | 135 | printf("context of %s retained as %s\n", fname, context_string); |
@@ -181,7 +181,7 @@ int chcon_main(int argc UNUSED_PARAM, char **argv) | |||
181 | #if ENABLE_FEATURE_CHCON_LONG_OPTIONS | 181 | #if ENABLE_FEATURE_CHCON_LONG_OPTIONS |
182 | if (option_mask32 & OPT_REFERENCE) { | 182 | if (option_mask32 & OPT_REFERENCE) { |
183 | /* FIXME: lgetfilecon() should be used when '-h' is specified. | 183 | /* FIXME: lgetfilecon() should be used when '-h' is specified. |
184 | But current implementation follows the original one. */ | 184 | * But current implementation follows the original one. */ |
185 | if (getfilecon(reference_file, &specified_context) < 0) | 185 | if (getfilecon(reference_file, &specified_context) < 0) |
186 | bb_perror_msg_and_die("getfilecon('%s') failed", reference_file); | 186 | bb_perror_msg_and_die("getfilecon('%s') failed", reference_file); |
187 | } else | 187 | } else |
@@ -201,10 +201,10 @@ int chcon_main(int argc UNUSED_PARAM, char **argv) | |||
201 | fname[fname_len] = '\0'; | 201 | fname[fname_len] = '\0'; |
202 | 202 | ||
203 | if (recursive_action(fname, | 203 | if (recursive_action(fname, |
204 | 1<<option_mask32 & OPT_RECURSIVE, | 204 | 1<<option_mask32 & OPT_RECURSIVE, |
205 | change_filedir_context, | 205 | change_filedir_context, |
206 | change_filedir_context, | 206 | change_filedir_context, |
207 | NULL, 0) != TRUE) | 207 | NULL, 0) != TRUE) |
208 | errors = 1; | 208 | errors = 1; |
209 | } | 209 | } |
210 | return errors; | 210 | return errors; |
diff --git a/selinux/runcon.c b/selinux/runcon.c index 3183a2274..27f2be3a9 100644 --- a/selinux/runcon.c +++ b/selinux/runcon.c | |||
@@ -56,7 +56,7 @@ | |||
56 | #include "libbb.h" | 56 | #include "libbb.h" |
57 | 57 | ||
58 | static context_t runcon_compute_new_context(char *user, char *role, char *type, char *range, | 58 | static context_t runcon_compute_new_context(char *user, char *role, char *type, char *range, |
59 | char *command, int compute_trans) | 59 | char *command, int compute_trans) |
60 | { | 60 | { |
61 | context_t con; | 61 | context_t con; |
62 | security_context_t cur_context; | 62 | security_context_t cur_context; |
@@ -69,9 +69,9 @@ static context_t runcon_compute_new_context(char *user, char *role, char *type, | |||
69 | 69 | ||
70 | if (getfilecon(command, &file_context) < 0) | 70 | if (getfilecon(command, &file_context) < 0) |
71 | bb_error_msg_and_die("can't retrieve attributes of '%s'", | 71 | bb_error_msg_and_die("can't retrieve attributes of '%s'", |
72 | command); | 72 | command); |
73 | if (security_compute_create(cur_context, file_context, | 73 | if (security_compute_create(cur_context, file_context, |
74 | SECCLASS_PROCESS, &new_context)) | 74 | SECCLASS_PROCESS, &new_context)) |
75 | bb_error_msg_and_die("unable to compute a new context"); | 75 | bb_error_msg_and_die("unable to compute a new context"); |
76 | cur_context = new_context; | 76 | cur_context = new_context; |
77 | } | 77 | } |
@@ -147,11 +147,11 @@ int runcon_main(int argc UNUSED_PARAM, char **argv) | |||
147 | 147 | ||
148 | if (security_check_context(context_str(con))) | 148 | if (security_check_context(context_str(con))) |
149 | bb_error_msg_and_die("'%s' is not a valid context", | 149 | bb_error_msg_and_die("'%s' is not a valid context", |
150 | context_str(con)); | 150 | context_str(con)); |
151 | 151 | ||
152 | if (setexeccon(context_str(con))) | 152 | if (setexeccon(context_str(con))) |
153 | bb_error_msg_and_die("can't set up security context '%s'", | 153 | bb_error_msg_and_die("can't set up security context '%s'", |
154 | context_str(con)); | 154 | context_str(con)); |
155 | 155 | ||
156 | BB_EXECVP_or_die(argv); | 156 | BB_EXECVP_or_die(argv); |
157 | } | 157 | } |
diff --git a/selinux/sestatus.c b/selinux/sestatus.c index 0bd1a0dda..e59431873 100644 --- a/selinux/sestatus.c +++ b/selinux/sestatus.c | |||
@@ -41,7 +41,7 @@ static void display_boolean(void) | |||
41 | if (pending < 0) | 41 | if (pending < 0) |
42 | goto skip; | 42 | goto skip; |
43 | printf(COL_FMT "%s", | 43 | printf(COL_FMT "%s", |
44 | bools[i], active == 0 ? "off" : "on"); | 44 | bools[i], active == 0 ? "off" : "on"); |
45 | if (active != pending) | 45 | if (active != pending) |
46 | printf(" (%sactivate pending)", pending == 0 ? "in" : ""); | 46 | printf(" (%sactivate pending)", pending == 0 ? "in" : ""); |
47 | bb_putchar('\n'); | 47 | bb_putchar('\n'); |
diff --git a/selinux/setfiles.c b/selinux/setfiles.c index ca3fd9361..0173db99e 100644 --- a/selinux/setfiles.c +++ b/selinux/setfiles.c | |||
@@ -498,10 +498,11 @@ static int process_one(char *name) | |||
498 | 498 | ||
499 | if (S_ISDIR(sb.st_mode) && recurse) { | 499 | if (S_ISDIR(sb.st_mode) && recurse) { |
500 | if (recursive_action(name, | 500 | if (recursive_action(name, |
501 | ACTION_RECURSE, | 501 | ACTION_RECURSE, |
502 | apply_spec, | 502 | apply_spec, |
503 | apply_spec, | 503 | apply_spec, |
504 | NULL, 0) != TRUE) { | 504 | NULL, 0) != TRUE |
505 | ) { | ||
505 | bb_error_msg("error while labeling %s", name); | 506 | bb_error_msg("error while labeling %s", name); |
506 | goto err; | 507 | goto err; |
507 | } | 508 | } |
@@ -584,7 +585,7 @@ int setfiles_main(int argc UNUSED_PARAM, char **argv) | |||
584 | flags = getopt32(argv, "de:f:ilnpqr:svo:FW" | 585 | flags = getopt32(argv, "de:f:ilnpqr:svo:FW" |
585 | IF_FEATURE_SETFILES_CHECK_OPTION("c:"), | 586 | IF_FEATURE_SETFILES_CHECK_OPTION("c:"), |
586 | &exclude_dir, &input_filename, &rootpath, &out_filename, | 587 | &exclude_dir, &input_filename, &rootpath, &out_filename, |
587 | IF_FEATURE_SETFILES_CHECK_OPTION(&policyfile,) | 588 | IF_FEATURE_SETFILES_CHECK_OPTION(&policyfile,) |
588 | &verbose); | 589 | &verbose); |
589 | } | 590 | } |
590 | argv += optind; | 591 | argv += optind; |
@@ -600,8 +601,8 @@ int setfiles_main(int argc UNUSED_PARAM, char **argv) | |||
600 | fclose(policystream); | 601 | fclose(policystream); |
601 | 602 | ||
602 | /* Only process the specified file_contexts file, not | 603 | /* Only process the specified file_contexts file, not |
603 | any .homedirs or .local files, and do not perform | 604 | * any .homedirs or .local files, and do not perform |
604 | context translations. */ | 605 | * context translations. */ |
605 | set_matchpathcon_flags(MATCHPATHCON_BASEONLY | | 606 | set_matchpathcon_flags(MATCHPATHCON_BASEONLY | |
606 | MATCHPATHCON_NOTRANS | | 607 | MATCHPATHCON_NOTRANS | |
607 | MATCHPATHCON_VALIDATE); | 608 | MATCHPATHCON_VALIDATE); |
@@ -631,8 +632,8 @@ int setfiles_main(int argc UNUSED_PARAM, char **argv) | |||
631 | 632 | ||
632 | if (applet_name[0] == 's') { /* setfiles */ | 633 | if (applet_name[0] == 's') { /* setfiles */ |
633 | /* Use our own invalid context checking function so that | 634 | /* Use our own invalid context checking function so that |
634 | we can support either checking against the active policy or | 635 | * we can support either checking against the active policy or |
635 | checking against a binary policy file. */ | 636 | * checking against a binary policy file. */ |
636 | set_matchpathcon_canoncon(&canoncon); | 637 | set_matchpathcon_canoncon(&canoncon); |
637 | if (!argv[0]) | 638 | if (!argv[0]) |
638 | bb_show_usage(); | 639 | bb_show_usage(); |
diff --git a/shell/ash.c b/shell/ash.c index dda18e8b5..eb1347447 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -3564,7 +3564,8 @@ set_curjob(struct job *jp, unsigned mode) | |||
3564 | break; | 3564 | break; |
3565 | case CUR_RUNNING: | 3565 | case CUR_RUNNING: |
3566 | /* newly created job or backgrounded job, | 3566 | /* newly created job or backgrounded job, |
3567 | put after all stopped jobs. */ | 3567 | * put after all stopped jobs. |
3568 | */ | ||
3568 | while (1) { | 3569 | while (1) { |
3569 | jp1 = *jpp; | 3570 | jp1 = *jpp; |
3570 | #if JOBS | 3571 | #if JOBS |
@@ -11640,8 +11641,9 @@ parsebackq: { | |||
11640 | INT_ON; | 11641 | INT_ON; |
11641 | if (oldstyle) { | 11642 | if (oldstyle) { |
11642 | /* We must read until the closing backquote, giving special | 11643 | /* We must read until the closing backquote, giving special |
11643 | treatment to some slashes, and then push the string and | 11644 | * treatment to some slashes, and then push the string and |
11644 | reread it as input, interpreting it normally. */ | 11645 | * reread it as input, interpreting it normally. |
11646 | */ | ||
11645 | char *pout; | 11647 | char *pout; |
11646 | size_t psavelen; | 11648 | size_t psavelen; |
11647 | char *pstr; | 11649 | char *pstr; |
diff --git a/shell/hush.c b/shell/hush.c index b9e763cc8..87807052c 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -4219,7 +4219,7 @@ static struct pipe *parse_stream(char **pstring, | |||
4219 | /* (this makes bare "&" cmd a no-op. | 4219 | /* (this makes bare "&" cmd a no-op. |
4220 | * bash says: "syntax error near unexpected token '&'") */ | 4220 | * bash says: "syntax error near unexpected token '&'") */ |
4221 | if (pi->num_cmds == 0 | 4221 | if (pi->num_cmds == 0 |
4222 | IF_HAS_KEYWORDS( && pi->res_word == RES_NONE) | 4222 | IF_HAS_KEYWORDS(&& pi->res_word == RES_NONE) |
4223 | ) { | 4223 | ) { |
4224 | free_pipe_list(pi); | 4224 | free_pipe_list(pi); |
4225 | pi = NULL; | 4225 | pi = NULL; |
@@ -4372,7 +4372,7 @@ static struct pipe *parse_stream(char **pstring, | |||
4372 | debug_printf_parse("dest.o_assignment='%s'\n", assignment_flag[dest.o_assignment]); | 4372 | debug_printf_parse("dest.o_assignment='%s'\n", assignment_flag[dest.o_assignment]); |
4373 | /* Do we sit outside of any if's, loops or case's? */ | 4373 | /* Do we sit outside of any if's, loops or case's? */ |
4374 | if (!HAS_KEYWORDS | 4374 | if (!HAS_KEYWORDS |
4375 | IF_HAS_KEYWORDS(|| (ctx.ctx_res_w == RES_NONE && ctx.old_flag == 0)) | 4375 | IF_HAS_KEYWORDS(|| (ctx.ctx_res_w == RES_NONE && ctx.old_flag == 0)) |
4376 | ) { | 4376 | ) { |
4377 | o_free(&dest); | 4377 | o_free(&dest); |
4378 | #if !BB_MMU | 4378 | #if !BB_MMU |
diff --git a/shell/math.c b/shell/math.c index 760645d0f..15c003965 100644 --- a/shell/math.c +++ b/shell/math.c | |||
@@ -410,7 +410,7 @@ arith_apply(arith_state_t *math_state, operator op, var_or_num_t *numstack, var_ | |||
410 | return "exponent less than 0"; | 410 | return "exponent less than 0"; |
411 | c = 1; | 411 | c = 1; |
412 | while (--right_side_val >= 0) | 412 | while (--right_side_val >= 0) |
413 | c *= rez; | 413 | c *= rez; |
414 | rez = c; | 414 | rez = c; |
415 | } | 415 | } |
416 | else if (right_side_val == 0) | 416 | else if (right_side_val == 0) |
diff --git a/util-linux/fdisk_osf.c b/util-linux/fdisk_osf.c index 65e6bd7c4..ff16389bd 100644 --- a/util-linux/fdisk_osf.c +++ b/util-linux/fdisk_osf.c | |||
@@ -898,8 +898,7 @@ xbsd_initlabel(struct partition *p) | |||
898 | pp->p_fstype = BSD_FS_UNUSED; | 898 | pp->p_fstype = BSD_FS_UNUSED; |
899 | #else | 899 | #else |
900 | d->d_npartitions = 3; | 900 | d->d_npartitions = 3; |
901 | pp = &d->d_partitions[2]; /* Partition C should be | 901 | pp = &d->d_partitions[2]; /* Partition C should be the whole disk */ |
902 | the whole disk */ | ||
903 | pp->p_offset = 0; | 902 | pp->p_offset = 0; |
904 | pp->p_size = d->d_secperunit; | 903 | pp->p_size = d->d_secperunit; |
905 | pp->p_fstype = BSD_FS_UNUSED; | 904 | pp->p_fstype = BSD_FS_UNUSED; |
@@ -935,7 +934,7 @@ xbsd_readlabel(struct partition *p) | |||
935 | fdisk_fatal(unable_to_read); | 934 | fdisk_fatal(unable_to_read); |
936 | 935 | ||
937 | memmove(d, &disklabelbuffer[BSD_LABELSECTOR * SECTOR_SIZE + BSD_LABELOFFSET], | 936 | memmove(d, &disklabelbuffer[BSD_LABELSECTOR * SECTOR_SIZE + BSD_LABELOFFSET], |
938 | sizeof(struct xbsd_disklabel)); | 937 | sizeof(struct xbsd_disklabel)); |
939 | 938 | ||
940 | if (d->d_magic != BSD_DISKMAGIC || d->d_magic2 != BSD_DISKMAGIC) | 939 | if (d->d_magic != BSD_DISKMAGIC || d->d_magic2 != BSD_DISKMAGIC) |
941 | return 0; | 940 | return 0; |
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c index 1508ecb03..c1d1b2cc3 100644 --- a/util-linux/fsck_minix.c +++ b/util-linux/fsck_minix.c | |||
@@ -13,7 +13,7 @@ | |||
13 | * 10.11.91 - updated, does checking, no repairs yet. | 13 | * 10.11.91 - updated, does checking, no repairs yet. |
14 | * Sent out to the mailing-list for testing. | 14 | * Sent out to the mailing-list for testing. |
15 | * | 15 | * |
16 | * 14.11.91 - Testing seems to have gone well. Added some | 16 | * 14.11.91 - Testing seems to have gone well. Added some |
17 | * correction-code, and changed some functions. | 17 | * correction-code, and changed some functions. |
18 | * | 18 | * |
19 | * 15.11.91 - More correction code. Hopefully it notices most | 19 | * 15.11.91 - More correction code. Hopefully it notices most |
@@ -22,11 +22,10 @@ | |||
22 | * 16.11.91 - More corrections (thanks to Mika Jalava). Most | 22 | * 16.11.91 - More corrections (thanks to Mika Jalava). Most |
23 | * things seem to work now. Yeah, sure. | 23 | * things seem to work now. Yeah, sure. |
24 | * | 24 | * |
25 | * | 25 | * 19.04.92 - Had to start over again from this old version, as a |
26 | * 19.04.92 - Had to start over again from this old version, as a | ||
27 | * kernel bug ate my enhanced fsck in february. | 26 | * kernel bug ate my enhanced fsck in february. |
28 | * | 27 | * |
29 | * 28.02.93 - added support for different directory entry sizes.. | 28 | * 28.02.93 - added support for different directory entry sizes.. |
30 | * | 29 | * |
31 | * Sat Mar 6 18:59:42 1993, faith@cs.unc.edu: Output namelen with | 30 | * Sat Mar 6 18:59:42 1993, faith@cs.unc.edu: Output namelen with |
32 | * superblock information | 31 | * superblock information |
@@ -35,31 +34,31 @@ | |||
35 | * to that required by fsutil | 34 | * to that required by fsutil |
36 | * | 35 | * |
37 | * Mon Jan 3 11:06:52 1994 - Dr. Wettstein (greg%wind.uucp@plains.nodak.edu) | 36 | * Mon Jan 3 11:06:52 1994 - Dr. Wettstein (greg%wind.uucp@plains.nodak.edu) |
38 | * Added support for file system valid flag. Also | 37 | * Added support for file system valid flag. Also |
39 | * added program_version variable and output of | 38 | * added program_version variable and output of |
40 | * program name and version number when program | 39 | * program name and version number when program |
41 | * is executed. | 40 | * is executed. |
42 | * | 41 | * |
43 | * 30.10.94 - added support for v2 filesystem | 42 | * 30.10.94 - added support for v2 filesystem |
44 | * (Andreas Schwab, schwab@issan.informatik.uni-dortmund.de) | 43 | * (Andreas Schwab, schwab@issan.informatik.uni-dortmund.de) |
45 | * | 44 | * |
46 | * 10.12.94 - added test to prevent checking of mounted fs adapted | 45 | * 10.12.94 - added test to prevent checking of mounted fs adapted |
47 | * from Theodore Ts'o's (tytso@athena.mit.edu) e2fsck | 46 | * from Theodore Ts'o's (tytso@athena.mit.edu) e2fsck |
48 | * program. (Daniel Quinlan, quinlan@yggdrasil.com) | 47 | * program. (Daniel Quinlan, quinlan@yggdrasil.com) |
49 | * | 48 | * |
50 | * 01.07.96 - Fixed the v2 fs stuff to use the right #defines and such | 49 | * 01.07.96 - Fixed the v2 fs stuff to use the right #defines and such |
51 | * for modern libcs (janl@math.uio.no, Nicolai Langfeldt) | 50 | * for modern libcs (janl@math.uio.no, Nicolai Langfeldt) |
52 | * | 51 | * |
53 | * 02.07.96 - Added C bit fiddling routines from rmk@ecs.soton.ac.uk | 52 | * 02.07.96 - Added C bit fiddling routines from rmk@ecs.soton.ac.uk |
54 | * (Russell King). He made them for ARM. It would seem | 53 | * (Russell King). He made them for ARM. It would seem |
55 | * that the ARM is powerful enough to do this in C whereas | 54 | * that the ARM is powerful enough to do this in C whereas |
56 | * i386 and m64k must use assembly to get it fast >:-) | 55 | * i386 and m64k must use assembly to get it fast >:-) |
57 | * This should make minix fsck system-independent. | 56 | * This should make minix fsck system-independent. |
58 | * (janl@math.uio.no, Nicolai Langfeldt) | 57 | * (janl@math.uio.no, Nicolai Langfeldt) |
59 | * | 58 | * |
60 | * 04.11.96 - Added minor fixes from Andreas Schwab to avoid compiler | 59 | * 04.11.96 - Added minor fixes from Andreas Schwab to avoid compiler |
61 | * warnings. Added mc68k bitops from | 60 | * warnings. Added mc68k bitops from |
62 | * Joerg Dorchain <dorchain@mpi-sb.mpg.de>. | 61 | * Joerg Dorchain <dorchain@mpi-sb.mpg.de>. |
63 | * | 62 | * |
64 | * 06.11.96 - Added v2 code submitted by Joerg Dorchain, but written by | 63 | * 06.11.96 - Added v2 code submitted by Joerg Dorchain, but written by |
65 | * Andreas Schwab. | 64 | * Andreas Schwab. |
@@ -1131,7 +1130,7 @@ static void check_counts(void) | |||
1131 | continue; | 1130 | continue; |
1132 | } | 1131 | } |
1133 | printf("Zone %d: %sin use, counted=%d\n", | 1132 | printf("Zone %d: %sin use, counted=%d\n", |
1134 | i, zone_in_use(i) ? "" : "not ", zone_count[i]); | 1133 | i, zone_in_use(i) ? "" : "not ", zone_count[i]); |
1135 | } | 1134 | } |
1136 | } | 1135 | } |
1137 | 1136 | ||
@@ -1183,7 +1182,7 @@ static void check_counts2(void) | |||
1183 | continue; | 1182 | continue; |
1184 | } | 1183 | } |
1185 | printf("Zone %d: %sin use, counted=%d\n", | 1184 | printf("Zone %d: %sin use, counted=%d\n", |
1186 | i, zone_in_use(i) ? "" : "not ", zone_count[i]); | 1185 | i, zone_in_use(i) ? "" : "not ", zone_count[i]); |
1187 | } | 1186 | } |
1188 | } | 1187 | } |
1189 | #endif | 1188 | #endif |
@@ -1253,7 +1252,7 @@ int fsck_minix_main(int argc UNUSED_PARAM, char **argv) | |||
1253 | printf("Forcing filesystem check on %s\n", device_name); | 1252 | printf("Forcing filesystem check on %s\n", device_name); |
1254 | else if (OPT_repair) | 1253 | else if (OPT_repair) |
1255 | printf("Filesystem on %s is dirty, needs checking\n", | 1254 | printf("Filesystem on %s is dirty, needs checking\n", |
1256 | device_name); | 1255 | device_name); |
1257 | 1256 | ||
1258 | read_tables(); | 1257 | read_tables(); |
1259 | 1258 | ||
@@ -1280,23 +1279,23 @@ int fsck_minix_main(int argc UNUSED_PARAM, char **argv) | |||
1280 | if (!inode_in_use(i)) | 1279 | if (!inode_in_use(i)) |
1281 | free_cnt++; | 1280 | free_cnt++; |
1282 | printf("\n%6u inodes used (%u%%)\n", (INODES - free_cnt), | 1281 | printf("\n%6u inodes used (%u%%)\n", (INODES - free_cnt), |
1283 | 100 * (INODES - free_cnt) / INODES); | 1282 | 100 * (INODES - free_cnt) / INODES); |
1284 | for (i = FIRSTZONE, free_cnt = 0; i < ZONES; i++) | 1283 | for (i = FIRSTZONE, free_cnt = 0; i < ZONES; i++) |
1285 | if (!zone_in_use(i)) | 1284 | if (!zone_in_use(i)) |
1286 | free_cnt++; | 1285 | free_cnt++; |
1287 | printf("%6u zones used (%u%%)\n\n" | 1286 | printf("%6u zones used (%u%%)\n\n" |
1288 | "%6u regular files\n" | 1287 | "%6u regular files\n" |
1289 | "%6u directories\n" | 1288 | "%6u directories\n" |
1290 | "%6u character device files\n" | 1289 | "%6u character device files\n" |
1291 | "%6u block device files\n" | 1290 | "%6u block device files\n" |
1292 | "%6u links\n" | 1291 | "%6u links\n" |
1293 | "%6u symbolic links\n" | 1292 | "%6u symbolic links\n" |
1294 | "------\n" | 1293 | "------\n" |
1295 | "%6u files\n", | 1294 | "%6u files\n", |
1296 | (ZONES - free_cnt), 100 * (ZONES - free_cnt) / ZONES, | 1295 | (ZONES - free_cnt), 100 * (ZONES - free_cnt) / ZONES, |
1297 | regular, directory, chardev, blockdev, | 1296 | regular, directory, chardev, blockdev, |
1298 | links - 2 * directory + 1, symlinks, | 1297 | links - 2 * directory + 1, symlinks, |
1299 | total - 2 * directory + 1); | 1298 | total - 2 * directory + 1); |
1300 | } | 1299 | } |
1301 | if (changed) { | 1300 | if (changed) { |
1302 | write_tables(); | 1301 | write_tables(); |
diff --git a/util-linux/getopt.c b/util-linux/getopt.c index d662c813a..1ae0c59db 100644 --- a/util-linux/getopt.c +++ b/util-linux/getopt.c | |||
@@ -372,7 +372,7 @@ int getopt_main(int argc, char **argv) | |||
372 | if (!argv[1]) { | 372 | if (!argv[1]) { |
373 | if (compatible) { | 373 | if (compatible) { |
374 | /* For some reason, the original getopt gave no error | 374 | /* For some reason, the original getopt gave no error |
375 | when there were no arguments. */ | 375 | * when there were no arguments. */ |
376 | printf(" --\n"); | 376 | printf(" --\n"); |
377 | return 0; | 377 | return 0; |
378 | } | 378 | } |
diff --git a/util-linux/ipcs.c b/util-linux/ipcs.c index 8fdaf0b85..2668cafd4 100644 --- a/util-linux/ipcs.c +++ b/util-linux/ipcs.c | |||
@@ -152,7 +152,7 @@ static NOINLINE void do_shm(void) | |||
152 | if ((shmctl(0, IPC_INFO, (struct shmid_ds *) (void *) &shminfo)) < 0) | 152 | if ((shmctl(0, IPC_INFO, (struct shmid_ds *) (void *) &shminfo)) < 0) |
153 | return; | 153 | return; |
154 | /* glibc 2.1.3 and all earlier libc's have ints as fields | 154 | /* glibc 2.1.3 and all earlier libc's have ints as fields |
155 | of struct shminfo; glibc 2.1.91 has unsigned long; ach */ | 155 | * of struct shminfo; glibc 2.1.91 has unsigned long; ach */ |
156 | printf("max number of segments = %lu\n" | 156 | printf("max number of segments = %lu\n" |
157 | "max seg size (kbytes) = %lu\n" | 157 | "max seg size (kbytes) = %lu\n" |
158 | "max total shared memory (pages) = %lu\n" | 158 | "max total shared memory (pages) = %lu\n" |
diff --git a/util-linux/volume_id/nilfs.c b/util-linux/volume_id/nilfs.c index ffa86d43c..b88a9e435 100644 --- a/util-linux/volume_id/nilfs.c +++ b/util-linux/volume_id/nilfs.c | |||
@@ -86,7 +86,7 @@ int FAST_FUNC volume_id_probe_nilfs(struct volume_id *id /*,uint64_t off*/) | |||
86 | // When used it is at 4K from the end of the partition (sb->s_dev_size - NILFS_SB2_OFFSET). | 86 | // When used it is at 4K from the end of the partition (sb->s_dev_size - NILFS_SB2_OFFSET). |
87 | 87 | ||
88 | volume_id_set_label_string(id, sb->s_volume_name, NILFS_LABEL_SIZE < VOLUME_ID_LABEL_SIZE ? | 88 | volume_id_set_label_string(id, sb->s_volume_name, NILFS_LABEL_SIZE < VOLUME_ID_LABEL_SIZE ? |
89 | NILFS_LABEL_SIZE : VOLUME_ID_LABEL_SIZE); | 89 | NILFS_LABEL_SIZE : VOLUME_ID_LABEL_SIZE); |
90 | volume_id_set_uuid(id, sb->s_uuid, UUID_DCE); | 90 | volume_id_set_uuid(id, sb->s_uuid, UUID_DCE); |
91 | 91 | ||
92 | if (sb->s_rev_level == 2) | 92 | if (sb->s_rev_level == 2) |
diff --git a/util-linux/volume_id/ntfs.c b/util-linux/volume_id/ntfs.c index 547f141c9..7b2612f01 100644 --- a/util-linux/volume_id/ntfs.c +++ b/util-linux/volume_id/ntfs.c | |||
@@ -132,7 +132,7 @@ int FAST_FUNC volume_id_probe_ntfs(struct volume_id *id /*,uint64_t off*/) | |||
132 | dbg("mft record size %i", mft_record_size); | 132 | dbg("mft record size %i", mft_record_size); |
133 | 133 | ||
134 | buf = volume_id_get_buffer(id, off + mft_off + (MFT_RECORD_VOLUME * mft_record_size), | 134 | buf = volume_id_get_buffer(id, off + mft_off + (MFT_RECORD_VOLUME * mft_record_size), |
135 | mft_record_size); | 135 | mft_record_size); |
136 | if (buf == NULL) | 136 | if (buf == NULL) |
137 | goto found; | 137 | goto found; |
138 | 138 | ||
@@ -165,7 +165,7 @@ int FAST_FUNC volume_id_probe_ntfs(struct volume_id *id /*,uint64_t off*/) | |||
165 | break; | 165 | break; |
166 | 166 | ||
167 | dbg("found attribute type 0x%x, len %i, at offset %i", | 167 | dbg("found attribute type 0x%x, len %i, at offset %i", |
168 | attr_type, attr_len, attr_off); | 168 | attr_type, attr_len, attr_off); |
169 | 169 | ||
170 | // if (attr_type == MFT_RECORD_ATTR_VOLUME_INFO) { | 170 | // if (attr_type == MFT_RECORD_ATTR_VOLUME_INFO) { |
171 | // struct volume_info *info; | 171 | // struct volume_info *info; |
diff --git a/util-linux/volume_id/udf.c b/util-linux/volume_id/udf.c index cd63c8d8a..d3747fb8e 100644 --- a/util-linux/volume_id/udf.c +++ b/util-linux/volume_id/udf.c | |||
@@ -109,7 +109,7 @@ nsr: | |||
109 | return -1; | 109 | return -1; |
110 | 110 | ||
111 | dbg("vsd: %c%c%c%c%c", | 111 | dbg("vsd: %c%c%c%c%c", |
112 | vsd->id[0], vsd->id[1], vsd->id[2], vsd->id[3], vsd->id[4]); | 112 | vsd->id[0], vsd->id[1], vsd->id[2], vsd->id[3], vsd->id[4]); |
113 | 113 | ||
114 | if (vsd->id[0] == '\0') | 114 | if (vsd->id[0] == '\0') |
115 | return -1; | 115 | return -1; |
diff --git a/util-linux/volume_id/unused_msdos.c b/util-linux/volume_id/unused_msdos.c index 65fb88501..2e8cb196a 100644 --- a/util-linux/volume_id/unused_msdos.c +++ b/util-linux/volume_id/unused_msdos.c | |||
@@ -109,7 +109,7 @@ int FAST_FUNC volume_id_probe_msdos_part_table(struct volume_id *id, uint64_t of | |||
109 | extended = off + poff; | 109 | extended = off + poff; |
110 | } else { | 110 | } else { |
111 | dbg("found 0x%x data partition at 0x%llx, len 0x%llx", | 111 | dbg("found 0x%x data partition at 0x%llx, len 0x%llx", |
112 | part[i].sys_ind, (unsigned long long) poff, (unsigned long long) plen); | 112 | part[i].sys_ind, (unsigned long long) poff, (unsigned long long) plen); |
113 | 113 | ||
114 | // if (is_raid(part[i].sys_ind)) | 114 | // if (is_raid(part[i].sys_ind)) |
115 | // volume_id_set_usage_part(p, VOLUME_ID_RAID); | 115 | // volume_id_set_usage_part(p, VOLUME_ID_RAID); |
diff --git a/util-linux/volume_id/unused_silicon_raid.c b/util-linux/volume_id/unused_silicon_raid.c index d1c439ecf..878b88197 100644 --- a/util-linux/volume_id/unused_silicon_raid.c +++ b/util-linux/volume_id/unused_silicon_raid.c | |||
@@ -62,7 +62,7 @@ int FAST_FUNC volume_id_probe_silicon_medley_raid(struct volume_id *id, uint64_t | |||
62 | 62 | ||
63 | // volume_id_set_usage(id, VOLUME_ID_RAID); | 63 | // volume_id_set_usage(id, VOLUME_ID_RAID); |
64 | // snprintf(id->type_version, sizeof(id->type_version)-1, "%u.%u", | 64 | // snprintf(id->type_version, sizeof(id->type_version)-1, "%u.%u", |
65 | // le16_to_cpu(sil->major_ver), le16_to_cpu(sil->minor_ver)); | 65 | // le16_to_cpu(sil->major_ver), le16_to_cpu(sil->minor_ver)); |
66 | // id->type = "silicon_medley_raid_member"; | 66 | // id->type = "silicon_medley_raid_member"; |
67 | 67 | ||
68 | return 0; | 68 | return 0; |