Scrub up some function prototypes.

-Erik
This commit is contained in:
Eric Andersen
2001-10-18 04:11:39 +00:00
parent 8acbf1d307
commit 74400ccfd0
22 changed files with 95 additions and 114 deletions

View File

@@ -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 */

View File

@@ -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)

View File

@@ -22,10 +22,9 @@
*/
#include <netdb.h>
extern int h_errno;
#include "libbb.h"
struct hostent *xgethostbyname(const char *name)
{
struct hostent *retval;