From 74400ccfd08e8ff72b9147951dd437dd3bb7abb1 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 18 Oct 2001 04:11:39 +0000 Subject: Scrub up some function prototypes. -Erik --- libbb/unzip.c | 6 +++--- libbb/vherror_msg.c | 3 +-- libbb/xgethostbyname.c | 3 +-- 3 files changed, 5 insertions(+), 7 deletions(-) (limited to 'libbb') diff --git a/libbb/unzip.c b/libbb/unzip.c index ee74621..bb32891 100644 --- a/libbb/unzip.c +++ b/libbb/unzip.c @@ -115,13 +115,13 @@ static const unsigned short mask_bits[] = { * Signal and error handler. */ -static void abort_gzip() +static void abort_gzip(void) { error_msg("gzip aborted\n"); exit(ERROR); } -static void make_crc_table() +static void make_crc_table(void) { unsigned long table_entry; /* crc shift register */ unsigned long poly = 0; /* polynomial exclusive-or pattern */ @@ -853,7 +853,7 @@ static int inflate_block(int *e) * * GLOBAL VARIABLES: outcnt, bk, bb, hufts, inptr */ -static int inflate() +static int inflate(void) { int e; /* last block flag */ int r; /* result code */ diff --git a/libbb/vherror_msg.c b/libbb/vherror_msg.c index ee0bb50..44f6ebd 100644 --- a/libbb/vherror_msg.c +++ b/libbb/vherror_msg.c @@ -27,12 +27,11 @@ #include #include -extern int h_errno; - #include #include "libbb.h" + extern void vherror_msg(const char *s, va_list p) { if(s == 0) diff --git a/libbb/xgethostbyname.c b/libbb/xgethostbyname.c index 2585103..be56f2e 100644 --- a/libbb/xgethostbyname.c +++ b/libbb/xgethostbyname.c @@ -22,10 +22,9 @@ */ #include -extern int h_errno; - #include "libbb.h" + struct hostent *xgethostbyname(const char *name) { struct hostent *retval; -- cgit v1.1