aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-10-18 04:11:39 +0000
committerEric Andersen <andersen@codepoet.org>2001-10-18 04:11:39 +0000
commit74400ccfd08e8ff72b9147951dd437dd3bb7abb1 (patch)
treed1e5c30982d3ef735c33b3b52722aaaadd8daaaa /libbb
parent8acbf1d3079e9ed6d15c39bd57135b13ecb4076f (diff)
downloadbusybox-74400ccfd08e8ff72b9147951dd437dd3bb7abb1.tar.gz
Scrub up some function prototypes.
-Erik
Diffstat (limited to 'libbb')
-rw-r--r--libbb/unzip.c6
-rw-r--r--libbb/vherror_msg.c3
-rw-r--r--libbb/xgethostbyname.c3
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[] = {
* 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 ee0bb5009..44f6ebd28 100644
--- a/libbb/vherror_msg.c
+++ b/libbb/vherror_msg.c
@@ -27,12 +27,11 @@
#include <stdarg.h>
#include <netdb.h>
-extern int h_errno;
-
#include <stdio.h>
#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 258510332..be56f2ed1 100644
--- a/libbb/xgethostbyname.c
+++ b/libbb/xgethostbyname.c
@@ -22,10 +22,9 @@
*/
#include <netdb.h>
-extern int h_errno;
-
#include "libbb.h"
+
struct hostent *xgethostbyname(const char *name)
{
struct hostent *retval;