From d3fd83d6ba385f006fb18aa06eae5594e7e2130f Mon Sep 17 00:00:00 2001 From: darrenr Date: Sun, 11 Jan 1998 06:03:35 +0000 Subject: change s_port to ntohs(s_port) for printf in DEBUG. --- usr.sbin/mount_portalfs/pt_tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/mount_portalfs') diff --git a/usr.sbin/mount_portalfs/pt_tcp.c b/usr.sbin/mount_portalfs/pt_tcp.c index ea7ac31..494911c 100644 --- a/usr.sbin/mount_portalfs/pt_tcp.c +++ b/usr.sbin/mount_portalfs/pt_tcp.c @@ -36,7 +36,7 @@ * * @(#)pt_tcp.c 8.5 (Berkeley) 4/28/95 * - * $Id: pt_tcp.c,v 1.4 1997/02/22 14:32:56 peter Exp $ + * $Id: pt_tcp.c,v 1.5 1997/03/11 12:35:00 peter Exp $ */ #include @@ -131,7 +131,7 @@ int portal_tcp(pcr, key, v, kso, fdp) s_port = htons(s_port); } #ifdef DEBUG - printf ("port number for %s is %d\n", port, s_port); + printf ("port number for %s is %d\n", port, ntohs(s_port)); #endif memset(&sain, 0, sizeof(sain)); -- cgit v1.1