diff options
| author | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-04-16 04:30:38 +0000 |
|---|---|---|
| committer | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-04-16 04:30:38 +0000 |
| commit | bcffd7a80dbf6f6d58670849274394733efde967 (patch) | |
| tree | 0fb5b9eaab153b533ffe5b228d70f05ebf0b3b16 | |
| parent | cdc31e7af53136fb35d2c1bfe4db80df8522f5a4 (diff) | |
| download | busybox-w32-bcffd7a80dbf6f6d58670849274394733efde967.tar.gz busybox-w32-bcffd7a80dbf6f6d58670849274394733efde967.tar.bz2 busybox-w32-bcffd7a80dbf6f6d58670849274394733efde967.zip | |
In Bug 208, bernhardf writes:
On machines with only ANSI compliant compilers, not explitily delcaring
an empty parameter list 'void' causes failure.
git-svn-id: svn://busybox.net/trunk/busybox@10113 69ca8d6d-28ef-0310-b511-8ec308f3f277
| -rw-r--r-- | archival/dpkg.c | 2 | ||||
| -rw-r--r-- | archival/gzip.c | 14 | ||||
| -rw-r--r-- | coreutils/test.c | 4 | ||||
| -rw-r--r-- | editors/vi.c | 12 | ||||
| -rw-r--r-- | loginutils/login.c | 2 | ||||
| -rw-r--r-- | networking/libiproute/utils.c | 2 |
6 files changed, 18 insertions, 18 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c index c096518a2..d3b56e398 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c | |||
| @@ -1327,7 +1327,7 @@ void free_array(char **array) | |||
| 1327 | * the status_hashtable to retrieve the info. This results in smaller code than | 1327 | * the status_hashtable to retrieve the info. This results in smaller code than |
| 1328 | * scanning the status file. The resulting list, however, is unsorted. | 1328 | * scanning the status file. The resulting list, however, is unsorted. |
| 1329 | */ | 1329 | */ |
| 1330 | void list_packages(void) | 1330 | static void list_packages(void) |
| 1331 | { | 1331 | { |
| 1332 | int i; | 1332 | int i; |
| 1333 | 1333 | ||
diff --git a/archival/gzip.c b/archival/gzip.c index 0c104cfc6..6cf4b395e 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
| @@ -541,7 +541,7 @@ static unsigned bi_reverse(unsigned code, int len) | |||
| 541 | /* =========================================================================== | 541 | /* =========================================================================== |
| 542 | * Write out any remaining bits in an incomplete byte. | 542 | * Write out any remaining bits in an incomplete byte. |
| 543 | */ | 543 | */ |
| 544 | static void bi_windup() | 544 | static void bi_windup(void) |
| 545 | { | 545 | { |
| 546 | if (bi_valid > 8) { | 546 | if (bi_valid > 8) { |
| 547 | put_short(bi_buf); | 547 | put_short(bi_buf); |
| @@ -978,7 +978,7 @@ static void check_match(IPos start, IPos match, int length) | |||
| 978 | * file reads are performed for at least two bytes (required for the | 978 | * file reads are performed for at least two bytes (required for the |
| 979 | * translate_eol option). | 979 | * translate_eol option). |
| 980 | */ | 980 | */ |
| 981 | static void fill_window() | 981 | static void fill_window(void) |
| 982 | { | 982 | { |
| 983 | register unsigned n, m; | 983 | register unsigned n, m; |
| 984 | unsigned more = | 984 | unsigned more = |
| @@ -1042,7 +1042,7 @@ static void fill_window() | |||
| 1042 | * evaluation for matches: a match is finally adopted only if there is | 1042 | * evaluation for matches: a match is finally adopted only if there is |
| 1043 | * no better match at the next window position. | 1043 | * no better match at the next window position. |
| 1044 | */ | 1044 | */ |
| 1045 | static ulg deflate() | 1045 | static ulg deflate(void) |
| 1046 | { | 1046 | { |
| 1047 | IPos hash_head; /* head of hash chain */ | 1047 | IPos hash_head; /* head of hash chain */ |
| 1048 | IPos prev_match; /* previous match */ | 1048 | IPos prev_match; /* previous match */ |
| @@ -1730,7 +1730,7 @@ static void ct_init(ush * attr, int *methodp) | |||
| 1730 | /* =========================================================================== | 1730 | /* =========================================================================== |
| 1731 | * Initialize a new block. | 1731 | * Initialize a new block. |
| 1732 | */ | 1732 | */ |
| 1733 | static void init_block() | 1733 | static void init_block(void) |
| 1734 | { | 1734 | { |
| 1735 | int n; /* iterates over tree elements */ | 1735 | int n; /* iterates over tree elements */ |
| 1736 | 1736 | ||
| @@ -2143,7 +2143,7 @@ static void send_tree(ct_data * tree, int max_code) | |||
| 2143 | * Construct the Huffman tree for the bit lengths and return the index in | 2143 | * Construct the Huffman tree for the bit lengths and return the index in |
| 2144 | * bl_order of the last bit length code to send. | 2144 | * bl_order of the last bit length code to send. |
| 2145 | */ | 2145 | */ |
| 2146 | static int build_bl_tree() | 2146 | static int build_bl_tree(void) |
| 2147 | { | 2147 | { |
| 2148 | int max_blindex; /* index of last bit length code of non zero freq */ | 2148 | int max_blindex; /* index of last bit length code of non zero freq */ |
| 2149 | 2149 | ||
| @@ -2406,7 +2406,7 @@ static void compress_block(ct_data * ltree, ct_data * dtree) | |||
| 2406 | * IN assertion: the fields freq of dyn_ltree are set and the total of all | 2406 | * IN assertion: the fields freq of dyn_ltree are set and the total of all |
| 2407 | * frequencies does not exceed 64K (to fit in an int on 16 bit machines). | 2407 | * frequencies does not exceed 64K (to fit in an int on 16 bit machines). |
| 2408 | */ | 2408 | */ |
| 2409 | static void set_file_type() | 2409 | static void set_file_type(void) |
| 2410 | { | 2410 | { |
| 2411 | int n = 0; | 2411 | int n = 0; |
| 2412 | unsigned ascii_freq = 0; | 2412 | unsigned ascii_freq = 0; |
| @@ -2519,7 +2519,7 @@ static int file_read(char *buf, unsigned size) | |||
| 2519 | * Write the output buffer outbuf[0..outcnt-1] and update bytes_out. | 2519 | * Write the output buffer outbuf[0..outcnt-1] and update bytes_out. |
| 2520 | * (used for the compressed data only) | 2520 | * (used for the compressed data only) |
| 2521 | */ | 2521 | */ |
| 2522 | static void flush_outbuf() | 2522 | static void flush_outbuf(void) |
| 2523 | { | 2523 | { |
| 2524 | if (outcnt == 0) | 2524 | if (outcnt == 0) |
| 2525 | return; | 2525 | return; |
diff --git a/coreutils/test.c b/coreutils/test.c index cec3c471d..3da2daecd 100644 --- a/coreutils/test.c +++ b/coreutils/test.c | |||
| @@ -310,7 +310,7 @@ static arith_t primary(enum token n) | |||
| 310 | return strlen(*t_wp) > 0; | 310 | return strlen(*t_wp) > 0; |
| 311 | } | 311 | } |
| 312 | 312 | ||
| 313 | static int binop() | 313 | static int binop(void) |
| 314 | { | 314 | { |
| 315 | const char *opnd1, *opnd2; | 315 | const char *opnd1, *opnd2; |
| 316 | struct t_op const *op; | 316 | struct t_op const *op; |
| @@ -537,7 +537,7 @@ static int test_eaccess(char *path, int mode) | |||
| 537 | return (-1); | 537 | return (-1); |
| 538 | } | 538 | } |
| 539 | 539 | ||
| 540 | static void initialize_group_array() | 540 | static void initialize_group_array(void) |
| 541 | { | 541 | { |
| 542 | ngroups = getgroups(0, NULL); | 542 | ngroups = getgroups(0, NULL); |
| 543 | group_array = xrealloc(group_array, ngroups * sizeof(gid_t)); | 543 | group_array = xrealloc(group_array, ngroups * sizeof(gid_t)); |
diff --git a/editors/vi.c b/editors/vi.c index cd6cf0ea1..5a47f5a23 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
| @@ -2340,7 +2340,7 @@ static Byte readit(void) // read (maybe cursor) key from stdin | |||
| 2340 | } | 2340 | } |
| 2341 | 2341 | ||
| 2342 | //----- IO Routines -------------------------------------------- | 2342 | //----- IO Routines -------------------------------------------- |
| 2343 | static Byte get_one_char() | 2343 | static Byte get_one_char(void) |
| 2344 | { | 2344 | { |
| 2345 | static Byte c; | 2345 | static Byte c; |
| 2346 | 2346 | ||
| @@ -2600,25 +2600,25 @@ static void place_cursor(int row, int col, int opti) | |||
| 2600 | } | 2600 | } |
| 2601 | 2601 | ||
| 2602 | //----- Erase from cursor to end of line ----------------------- | 2602 | //----- Erase from cursor to end of line ----------------------- |
| 2603 | static void clear_to_eol() | 2603 | static void clear_to_eol(void) |
| 2604 | { | 2604 | { |
| 2605 | write1(Ceol); // Erase from cursor to end of line | 2605 | write1(Ceol); // Erase from cursor to end of line |
| 2606 | } | 2606 | } |
| 2607 | 2607 | ||
| 2608 | //----- Erase from cursor to end of screen ----------------------- | 2608 | //----- Erase from cursor to end of screen ----------------------- |
| 2609 | static void clear_to_eos() | 2609 | static void clear_to_eos(void) |
| 2610 | { | 2610 | { |
| 2611 | write1(Ceos); // Erase from cursor to end of screen | 2611 | write1(Ceos); // Erase from cursor to end of screen |
| 2612 | } | 2612 | } |
| 2613 | 2613 | ||
| 2614 | //----- Start standout mode ------------------------------------ | 2614 | //----- Start standout mode ------------------------------------ |
| 2615 | static void standout_start() // send "start reverse video" sequence | 2615 | static void standout_start(void) // send "start reverse video" sequence |
| 2616 | { | 2616 | { |
| 2617 | write1(SOs); // Start reverse video mode | 2617 | write1(SOs); // Start reverse video mode |
| 2618 | } | 2618 | } |
| 2619 | 2619 | ||
| 2620 | //----- End standout mode -------------------------------------- | 2620 | //----- End standout mode -------------------------------------- |
| 2621 | static void standout_end() // send "end reverse video" sequence | 2621 | static void standout_end(void) // send "end reverse video" sequence |
| 2622 | { | 2622 | { |
| 2623 | write1(SOn); // End reverse video mode | 2623 | write1(SOn); // End reverse video mode |
| 2624 | } | 2624 | } |
| @@ -2648,7 +2648,7 @@ static void Indicate_Error(void) | |||
| 2648 | 2648 | ||
| 2649 | //----- Screen[] Routines -------------------------------------- | 2649 | //----- Screen[] Routines -------------------------------------- |
| 2650 | //----- Erase the Screen[] memory ------------------------------ | 2650 | //----- Erase the Screen[] memory ------------------------------ |
| 2651 | static void screen_erase() | 2651 | static void screen_erase(void) |
| 2652 | { | 2652 | { |
| 2653 | memset(screen, ' ', screensize); // clear new screen | 2653 | memset(screen, ' ', screensize); // clear new screen |
| 2654 | } | 2654 | } |
diff --git a/loginutils/login.c b/loginutils/login.c index f3630f102..25f3c01e2 100644 --- a/loginutils/login.c +++ b/loginutils/login.c | |||
| @@ -387,7 +387,7 @@ static int is_my_tty ( const char *tty ) | |||
| 387 | } | 387 | } |
| 388 | 388 | ||
| 389 | 389 | ||
| 390 | static void motd ( ) | 390 | static void motd (void) |
| 391 | { | 391 | { |
| 392 | FILE *fp; | 392 | FILE *fp; |
| 393 | register int c; | 393 | register int c; |
diff --git a/networking/libiproute/utils.c b/networking/libiproute/utils.c index fa1548609..d86d4f8f5 100644 --- a/networking/libiproute/utils.c +++ b/networking/libiproute/utils.c | |||
| @@ -238,7 +238,7 @@ __u32 get_addr32(char *name) | |||
| 238 | return addr.data[0]; | 238 | return addr.data[0]; |
| 239 | } | 239 | } |
| 240 | 240 | ||
| 241 | void incomplete_command() | 241 | void incomplete_command(void) |
| 242 | { | 242 | { |
| 243 | bb_error_msg("Command line is not complete. Try option \"help\""); | 243 | bb_error_msg("Command line is not complete. Try option \"help\""); |
| 244 | exit(-1); | 244 | exit(-1); |
