summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-04-06 19:52:17 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-04-06 19:52:17 +0000
commitb1eadd5672360839d3467a5b1d0b96c577e21256 (patch)
tree2b010949693bbbcee1dde425160a14c06ca5949a
parent1a777936c6cbf0c7ed35158034ef218d0c82e262 (diff)
Fix int vs. long problems
-rw-r--r--sbin/ipf/parse.c6
-rw-r--r--sbin/ipfstat/fils.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/sbin/ipf/parse.c b/sbin/ipf/parse.c
index 3cd8e2cabda..aff57227de7 100644
--- a/sbin/ipf/parse.c
+++ b/sbin/ipf/parse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.c,v 1.10 1997/02/26 15:05:36 kstailey Exp $ */
+/* $OpenBSD: parse.c,v 1.11 1997/04/06 19:52:11 millert Exp $ */
/*
* (C)opyright 1993-1996 by Darren Reed.
*
@@ -461,7 +461,7 @@ char *tag;
frdest_t *fdp;
{
(void)printf("%s %s%s", tag, fdp->fd_ifname,
- (fdp->fd_ifp || (int)fdp->fd_ifp == -1) ? "" : "(!)");
+ (fdp->fd_ifp || (long)fdp->fd_ifp == -1) ? "" : "(!)");
if (fdp->fd_ip.s_addr)
(void)printf(":%s", inet_ntoa(fdp->fd_ip));
putchar(' ');
@@ -1127,7 +1127,7 @@ struct frentry *fp;
if (*fp->fr_ifname) {
(void)printf("on %s%s ", fp->fr_ifname,
- (fp->fr_ifa || (int)fp->fr_ifa == -1) ? "" : "(!)");
+ (fp->fr_ifa || (long)fp->fr_ifa == -1) ? "" : "(!)");
if (*fp->fr_dif.fd_ifname)
print_toif("dup-to", &fp->fr_dif);
if (*fp->fr_tif.fd_ifname)
diff --git a/sbin/ipfstat/fils.c b/sbin/ipfstat/fils.c
index 32b80820d62..f34957c52e0 100644
--- a/sbin/ipfstat/fils.c
+++ b/sbin/ipfstat/fils.c
@@ -42,7 +42,7 @@
#if !defined(lint) && defined(LIBC_SCCS)
static char sccsid[] = "@(#)fils.c 1.21 4/20/96 (C) 1993-1996 Darren Reed";
-static char rcsid[] = "$Id: fils.c,v 1.9 1997/02/17 09:13:11 deraadt Exp $";
+static char rcsid[] = "$Id: fils.c,v 1.10 1997/04/06 19:52:16 millert Exp $";
#endif
#ifdef _PATH_UNIX
#define VMUNIX _PATH_UNIX
@@ -265,7 +265,7 @@ struct friostat *fiop;
FPRINTF(stderr, "showlist:opts %#x i %d\n", opts, i);
if (opts & OPT_VERBOSE)
- PRINTF("fp %#x set %d\n", (u_int)fp, set);
+ PRINTF("fp %#x set %d\n", (u_long)fp, set);
if (!fp) {
FPRINTF(stderr, "empty list for %s%s\n",
(opts & OPT_INACTIVE) ? "inactive " : "", filters[i]);