summaryrefslogtreecommitdiffstats
path: root/sbin/mount_nfs
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1997-12-26 23:28:17 +0000
committerimp <imp@FreeBSD.org>1997-12-26 23:28:17 +0000
commitec6e7a3cf863f9bc9b25ea098dcc0b58d6d6958b (patch)
treedfd99e60ff7976c00b386f1f3f3818db08cbe2f1 /sbin/mount_nfs
parenteff18422682c85ace5435c55b1582c38b811b49f (diff)
downloadFreeBSD-src-ec6e7a3cf863f9bc9b25ea098dcc0b58d6d6958b.zip
FreeBSD-src-ec6e7a3cf863f9bc9b25ea098dcc0b58d6d6958b.tar.gz
style(9) corrections
Submitted by: bde
Diffstat (limited to 'sbin/mount_nfs')
-rw-r--r--sbin/mount_nfs/mount_nfs.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c
index 246c40a..7a4a453 100644
--- a/sbin/mount_nfs/mount_nfs.c
+++ b/sbin/mount_nfs/mount_nfs.c
@@ -45,7 +45,7 @@ static char copyright[] =
static char sccsid[] = "@(#)mount_nfs.c 8.11 (Berkeley) 5/4/95";
*/
static const char rcsid[] =
- "$Id: mount_nfs.c,v 1.24 1997/10/19 16:40:01 joerg Exp $";
+ "$Id: mount_nfs.c,v 1.25 1997/12/24 00:58:39 imp Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -694,7 +694,8 @@ getnfsargs(spec, nfsargsp)
return (0);
}
} else if ((hp = gethostbyname(hostp)) != NULL)
- memmove(&saddr.sin_addr, hp->h_addr, MIN(hp->h_length, sizeof(saddr.sin_addr)));
+ memmove(&saddr.sin_addr, hp->h_addr,
+ MIN(hp->h_length, sizeof(saddr.sin_addr)));
else {
warnx("can't get net id for host");
return (0);
@@ -706,7 +707,8 @@ getnfsargs(spec, nfsargsp)
warnx("can't reverse resolve net address");
return (0);
}
- memmove(&saddr.sin_addr, hp->h_addr, MIN(hp->h_length, sizeof(saddr.sin_addr)));
+ memmove(&saddr.sin_addr, hp->h_addr,
+ MIN(hp->h_length, sizeof(saddr.sin_addr)));
strncpy(inst, hp->h_name, INST_SZ);
inst[INST_SZ - 1] = '\0';
if (cp = strchr(inst, '.'))
OpenPOWER on IntegriCloud