diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-10-18 04:11:39 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-10-18 04:11:39 +0000 |
commit | 6d1d34a65ad8952d8115209f78d4f6fffee1e64f (patch) | |
tree | d1e5c30982d3ef735c33b3b52722aaaadd8daaaa /libbb | |
parent | 61aa77b60c411aaee39c3fade8c566642a260365 (diff) | |
download | busybox-w32-6d1d34a65ad8952d8115209f78d4f6fffee1e64f.tar.gz busybox-w32-6d1d34a65ad8952d8115209f78d4f6fffee1e64f.tar.bz2 busybox-w32-6d1d34a65ad8952d8115209f78d4f6fffee1e64f.zip |
Scrub up some function prototypes.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@3540 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/unzip.c | 6 | ||||
-rw-r--r-- | libbb/vherror_msg.c | 3 | ||||
-rw-r--r-- | libbb/xgethostbyname.c | 3 |
3 files changed, 5 insertions, 7 deletions
diff --git a/libbb/unzip.c b/libbb/unzip.c index ee746216d..bb32891be 100644 --- a/libbb/unzip.c +++ b/libbb/unzip.c | |||
@@ -115,13 +115,13 @@ static const unsigned short mask_bits[] = { | |||
115 | * Signal and error handler. | 115 | * Signal and error handler. |
116 | */ | 116 | */ |
117 | 117 | ||
118 | static void abort_gzip() | 118 | static void abort_gzip(void) |
119 | { | 119 | { |
120 | error_msg("gzip aborted\n"); | 120 | error_msg("gzip aborted\n"); |
121 | exit(ERROR); | 121 | exit(ERROR); |
122 | } | 122 | } |
123 | 123 | ||
124 | static void make_crc_table() | 124 | static void make_crc_table(void) |
125 | { | 125 | { |
126 | unsigned long table_entry; /* crc shift register */ | 126 | unsigned long table_entry; /* crc shift register */ |
127 | unsigned long poly = 0; /* polynomial exclusive-or pattern */ | 127 | unsigned long poly = 0; /* polynomial exclusive-or pattern */ |
@@ -853,7 +853,7 @@ static int inflate_block(int *e) | |||
853 | * | 853 | * |
854 | * GLOBAL VARIABLES: outcnt, bk, bb, hufts, inptr | 854 | * GLOBAL VARIABLES: outcnt, bk, bb, hufts, inptr |
855 | */ | 855 | */ |
856 | static int inflate() | 856 | static int inflate(void) |
857 | { | 857 | { |
858 | int e; /* last block flag */ | 858 | int e; /* last block flag */ |
859 | int r; /* result code */ | 859 | int r; /* result code */ |
diff --git a/libbb/vherror_msg.c b/libbb/vherror_msg.c index ee0bb5009..44f6ebd28 100644 --- a/libbb/vherror_msg.c +++ b/libbb/vherror_msg.c | |||
@@ -27,12 +27,11 @@ | |||
27 | 27 | ||
28 | #include <stdarg.h> | 28 | #include <stdarg.h> |
29 | #include <netdb.h> | 29 | #include <netdb.h> |
30 | extern int h_errno; | ||
31 | |||
32 | #include <stdio.h> | 30 | #include <stdio.h> |
33 | 31 | ||
34 | #include "libbb.h" | 32 | #include "libbb.h" |
35 | 33 | ||
34 | |||
36 | extern void vherror_msg(const char *s, va_list p) | 35 | extern void vherror_msg(const char *s, va_list p) |
37 | { | 36 | { |
38 | if(s == 0) | 37 | if(s == 0) |
diff --git a/libbb/xgethostbyname.c b/libbb/xgethostbyname.c index 258510332..be56f2ed1 100644 --- a/libbb/xgethostbyname.c +++ b/libbb/xgethostbyname.c | |||
@@ -22,10 +22,9 @@ | |||
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <netdb.h> | 24 | #include <netdb.h> |
25 | extern int h_errno; | ||
26 | |||
27 | #include "libbb.h" | 25 | #include "libbb.h" |
28 | 26 | ||
27 | |||
29 | struct hostent *xgethostbyname(const char *name) | 28 | struct hostent *xgethostbyname(const char *name) |
30 | { | 29 | { |
31 | struct hostent *retval; | 30 | struct hostent *retval; |