64-bit clean
authorniklas <niklas@openbsd.org>
Fri, 14 Feb 1997 11:02:05 +0000 (11:02 +0000)
committerniklas <niklas@openbsd.org>
Fri, 14 Feb 1997 11:02:05 +0000 (11:02 +0000)
sbin/ipnat/ipnat.c

index 18b1f2c..de26edd 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: ipnat.c,v 1.12 1997/02/13 23:33:37 kstailey Exp $     */
+/*     $OpenBSD: ipnat.c,v 1.13 1997/02/14 11:02:05 niklas Exp $       */
 /*
  * (C)opyright 1993,1994,1995 by Darren Reed.
  *
@@ -192,7 +192,7 @@ void *ptr;
                        printf(" udp");
                printf("\n");
                if (verbose)
-                       printf("\t%x %u %x %u %x %d\n", (u_int)np->in_ifp,
+                       printf("\t%p %u %x %u %p %d\n", np->in_ifp,
                               np->in_space, np->in_flags, np->in_pnext, np,
                               np->in_use);
        } else {
@@ -222,7 +222,7 @@ void *ptr;
                }
                printf("\n");
                if (verbose)
-                       printf("\t%x %u %s %d %x\n", (u_int)np->in_ifp,
+                       printf("\t%p %u %s %d %x\n", np->in_ifp,
                               np->in_space, inet_ntoa(np->in_nextip),
                               np->in_pnext, np->in_flags);
        }
@@ -266,8 +266,7 @@ int fd, opts;
                        ns.ns_added, ns.ns_expire);
                printf("inuse\t%lu\n", ns.ns_inuse);
                if (opts & OPT_VERBOSE)
-                       printf("table %#x list %#x\n",
-                               (u_int)ns.ns_table, (u_int)ns.ns_list);
+                       printf("table %p list %p\n", ns.ns_table, ns.ns_list);
        }
        if (opts & OPT_LIST) {
                printf("List of active MAP/Redirect filters:\n");