summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mount_portalfs
diff options
context:
space:
mode:
authordarrenr <darrenr@FreeBSD.org>1998-01-11 06:03:35 +0000
committerdarrenr <darrenr@FreeBSD.org>1998-01-11 06:03:35 +0000
commitd3fd83d6ba385f006fb18aa06eae5594e7e2130f (patch)
treefc88729df1a4bd6e1daf6f525270e9aab9fae3e9 /usr.sbin/mount_portalfs
parentf5bd562f4c81b5b879ff6b459844f3b79d8d4f03 (diff)
downloadFreeBSD-src-d3fd83d6ba385f006fb18aa06eae5594e7e2130f.zip
FreeBSD-src-d3fd83d6ba385f006fb18aa06eae5594e7e2130f.tar.gz
change s_port to ntohs(s_port) for printf in DEBUG.
Diffstat (limited to 'usr.sbin/mount_portalfs')
-rw-r--r--usr.sbin/mount_portalfs/pt_tcp.c4
1 files changed, 2 insertions, 2 deletions
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 <stdio.h>
@@ -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));
OpenPOWER on IntegriCloud