diff options
author | darrenr <darrenr@FreeBSD.org> | 1998-01-11 06:03:35 +0000 |
---|---|---|
committer | darrenr <darrenr@FreeBSD.org> | 1998-01-11 06:03:35 +0000 |
commit | d3fd83d6ba385f006fb18aa06eae5594e7e2130f (patch) | |
tree | fc88729df1a4bd6e1daf6f525270e9aab9fae3e9 /usr.sbin/mount_portalfs | |
parent | f5bd562f4c81b5b879ff6b459844f3b79d8d4f03 (diff) | |
download | FreeBSD-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.c | 4 |
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)); |