[BusyBox-cvs] svn commit: trunk/busybox: archival coreutils editors loginutils ne etc...
vapier at busybox.net
vapier at busybox.net
Sat Apr 16 04:30:42 UTC 2005
Author: vapier
Date: 2005-04-15 22:30:38 -0600 (Fri, 15 Apr 2005)
New Revision: 10113
Log:
In Bug 208, bernhardf writes:
On machines with only ANSI compliant compilers, not explitily delcaring
an empty parameter list 'void' causes failure.
Modified:
trunk/busybox/archival/dpkg.c
trunk/busybox/archival/gzip.c
trunk/busybox/coreutils/test.c
trunk/busybox/editors/vi.c
trunk/busybox/loginutils/login.c
trunk/busybox/networking/libiproute/utils.c
Changeset:
Modified: trunk/busybox/archival/dpkg.c
===================================================================
--- trunk/busybox/archival/dpkg.c 2005-04-16 04:23:58 UTC (rev 10112)
+++ trunk/busybox/archival/dpkg.c 2005-04-16 04:30:38 UTC (rev 10113)
@@ -1327,7 +1327,7 @@
* the status_hashtable to retrieve the info. This results in smaller code than
* scanning the status file. The resulting list, however, is unsorted.
*/
-void list_packages(void)
+static void list_packages(void)
{
int i;
Modified: trunk/busybox/archival/gzip.c
===================================================================
--- trunk/busybox/archival/gzip.c 2005-04-16 04:23:58 UTC (rev 10112)
+++ trunk/busybox/archival/gzip.c 2005-04-16 04:30:38 UTC (rev 10113)
@@ -541,7 +541,7 @@
/* ===========================================================================
* Write out any remaining bits in an incomplete byte.
*/
-static void bi_windup()
+static void bi_windup(void)
{
if (bi_valid > 8) {
put_short(bi_buf);
@@ -978,7 +978,7 @@
* file reads are performed for at least two bytes (required for the
* translate_eol option).
*/
-static void fill_window()
+static void fill_window(void)
{
register unsigned n, m;
unsigned more =
@@ -1042,7 +1042,7 @@
* evaluation for matches: a match is finally adopted only if there is
* no better match at the next window position.
*/
-static ulg deflate()
+static ulg deflate(void)
{
IPos hash_head; /* head of hash chain */
IPos prev_match; /* previous match */
@@ -1730,7 +1730,7 @@
/* ===========================================================================
* Initialize a new block.
*/
-static void init_block()
+static void init_block(void)
{
int n; /* iterates over tree elements */
@@ -2143,7 +2143,7 @@
* Construct the Huffman tree for the bit lengths and return the index in
* bl_order of the last bit length code to send.
*/
-static int build_bl_tree()
+static int build_bl_tree(void)
{
int max_blindex; /* index of last bit length code of non zero freq */
@@ -2406,7 +2406,7 @@
* IN assertion: the fields freq of dyn_ltree are set and the total of all
* frequencies does not exceed 64K (to fit in an int on 16 bit machines).
*/
-static void set_file_type()
+static void set_file_type(void)
{
int n = 0;
unsigned ascii_freq = 0;
@@ -2519,7 +2519,7 @@
* Write the output buffer outbuf[0..outcnt-1] and update bytes_out.
* (used for the compressed data only)
*/
-static void flush_outbuf()
+static void flush_outbuf(void)
{
if (outcnt == 0)
return;
Modified: trunk/busybox/coreutils/test.c
===================================================================
--- trunk/busybox/coreutils/test.c 2005-04-16 04:23:58 UTC (rev 10112)
+++ trunk/busybox/coreutils/test.c 2005-04-16 04:30:38 UTC (rev 10113)
@@ -310,7 +310,7 @@
return strlen(*t_wp) > 0;
}
-static int binop()
+static int binop(void)
{
const char *opnd1, *opnd2;
struct t_op const *op;
@@ -537,7 +537,7 @@
return (-1);
}
-static void initialize_group_array()
+static void initialize_group_array(void)
{
ngroups = getgroups(0, NULL);
group_array = xrealloc(group_array, ngroups * sizeof(gid_t));
Modified: trunk/busybox/editors/vi.c
===================================================================
--- trunk/busybox/editors/vi.c 2005-04-16 04:23:58 UTC (rev 10112)
+++ trunk/busybox/editors/vi.c 2005-04-16 04:30:38 UTC (rev 10113)
@@ -2340,7 +2340,7 @@
}
//----- IO Routines --------------------------------------------
-static Byte get_one_char()
+static Byte get_one_char(void)
{
static Byte c;
@@ -2600,25 +2600,25 @@
}
//----- Erase from cursor to end of line -----------------------
-static void clear_to_eol()
+static void clear_to_eol(void)
{
write1(Ceol); // Erase from cursor to end of line
}
//----- Erase from cursor to end of screen -----------------------
-static void clear_to_eos()
+static void clear_to_eos(void)
{
write1(Ceos); // Erase from cursor to end of screen
}
//----- Start standout mode ------------------------------------
-static void standout_start() // send "start reverse video" sequence
+static void standout_start(void) // send "start reverse video" sequence
{
write1(SOs); // Start reverse video mode
}
//----- End standout mode --------------------------------------
-static void standout_end() // send "end reverse video" sequence
+static void standout_end(void) // send "end reverse video" sequence
{
write1(SOn); // End reverse video mode
}
@@ -2648,7 +2648,7 @@
//----- Screen[] Routines --------------------------------------
//----- Erase the Screen[] memory ------------------------------
-static void screen_erase()
+static void screen_erase(void)
{
memset(screen, ' ', screensize); // clear new screen
}
Modified: trunk/busybox/loginutils/login.c
===================================================================
--- trunk/busybox/loginutils/login.c 2005-04-16 04:23:58 UTC (rev 10112)
+++ trunk/busybox/loginutils/login.c 2005-04-16 04:30:38 UTC (rev 10113)
@@ -387,7 +387,7 @@
}
-static void motd ( )
+static void motd (void)
{
FILE *fp;
register int c;
Modified: trunk/busybox/networking/libiproute/utils.c
===================================================================
--- trunk/busybox/networking/libiproute/utils.c 2005-04-16 04:23:58 UTC (rev 10112)
+++ trunk/busybox/networking/libiproute/utils.c 2005-04-16 04:30:38 UTC (rev 10113)
@@ -238,7 +238,7 @@
return addr.data[0];
}
-void incomplete_command()
+void incomplete_command(void)
{
bb_error_msg("Command line is not complete. Try option \"help\"");
exit(-1);
More information about the busybox-cvs
mailing list