getopt() returns an int, not a char.

This commit is contained in:
thorpej 1997-04-19 06:27:03 +00:00
parent 95a1173e37
commit e612682b6c
3 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ipt.c,v 1.1.1.2 1997/03/29 02:49:46 darrenr Exp $ */
/* $NetBSD: ipt.c,v 1.2 1997/04/19 06:27:03 thorpej Exp $ */
/*
* (C)opyright 1993-1996 by Darren Reed.
@ -44,7 +44,7 @@
#if !defined(lint) && defined(LIBC_SCCS)
static char sccsid[] = "@(#)ipt.c 1.19 6/3/96 (C) 1993-1996 Darren Reed";
static char rcsid[] = "$Id: ipt.c,v 1.1.1.2 1997/03/29 02:49:46 darrenr Exp $";
static char rcsid[] = "$Id: ipt.c,v 1.2 1997/04/19 06:27:03 thorpej Exp $";
#endif
extern char *optarg;
@ -65,7 +65,7 @@ char *argv[];
struct ip *ip;
u_long buf[64];
struct ifnet *ifp;
char c;
int c;
char *rules = NULL, *datain = NULL, *iface = NULL;
int fd, i, dir = 0;

View File

@ -166,8 +166,8 @@ char **argv;
tcphdr_t *tcp;
ip_t *ip;
char *name = argv[0], host[64], *gateway = NULL, *dev = NULL;
char *src = NULL, *dst, c, *s;
int mtu = 1500, olen = 0;
char *src = NULL, *dst, *s;
int c, mtu = 1500, olen = 0;
/*
* 65535 is maximum packet size...you never know...

View File

@ -101,8 +101,8 @@ char **argv;
struct in_addr gwip;
ip_t *ip;
char *name = argv[0], host[64], *gateway = NULL, *dev = NULL;
char *src = NULL, *dst, c;
int mtu = 1500, tests = 0, pointtest = 0;
char *src = NULL, *dst;
int c, mtu = 1500, tests = 0, pointtest = 0;
/*
* 65535 is maximum packet size...you never know...