From 92e1d5d9385956ba0b0b21c80fbf6fb493a6a15a Mon Sep 17 00:00:00 2001 From: millert Date: Sun, 6 Apr 1997 19:52:11 +0000 Subject: [PATCH] Fix int vs. long problems --- sbin/ipf/parse.c | 6 +++--- sbin/ipfstat/fils.c | 4 ++-- 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]); -- 2.20.1