summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_vfsops.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-12-08 20:59:33 +0000
committerphk <phk@FreeBSD.org>1994-12-08 20:59:33 +0000
commitd9ebc16db1c37afa7cc6bdf192cc623a9d332bc8 (patch)
treee46d7b41c246dfcf106a39f363e3804af7e61cc7 /sys/nfsclient/nfs_vfsops.c
parent6656febfa59f827a54eb3ad1d70d2eaca1aa450d (diff)
downloadFreeBSD-src-d9ebc16db1c37afa7cc6bdf192cc623a9d332bc8.zip
FreeBSD-src-d9ebc16db1c37afa7cc6bdf192cc623a9d332bc8.tar.gz
Would you please correct nfs/nfs_vfsops.c so that the ip address of the
root filesystem is printed out correctly? It's line 299 in nfs/nfs_vfsops.c. Reviewed by: phk Submitted by: Luigi Rizzo luigi@iet.unipi.it
Diffstat (limited to 'sys/nfsclient/nfs_vfsops.c')
-rw-r--r--sys/nfsclient/nfs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c
index 5d7d9c4..c236f4b 100644
--- a/sys/nfsclient/nfs_vfsops.c
+++ b/sys/nfsclient/nfs_vfsops.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vfsops.c 8.3 (Berkeley) 1/4/94
- * $Id: nfs_vfsops.c,v 1.7 1994/10/22 17:52:59 phk Exp $
+ * $Id: nfs_vfsops.c,v 1.8 1994/10/23 23:26:18 wollman Exp $
*/
#include <sys/param.h>
@@ -296,7 +296,7 @@ nfs_mountroot()
* Create the rootfs mount point.
*/
nd->root_args.fh = (nfsv2fh_t *)nd->root_fh;
- l = ntohl(nd->swap_saddr.sin_addr.s_addr);
+ l = ntohl(nd->root_saddr.sin_addr.s_addr);
sprintf(buf,"%ld.%ld.%ld.%ld:%s",
(l >> 24) & 0xff, (l >> 16) & 0xff,
(l >> 8) & 0xff, (l >> 0) & 0xff,nd->root_hostnam);
OpenPOWER on IntegriCloud