summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-28 00:40:15 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-28 00:40:15 +0000
commit999d67c469871bac42c86c869fc0ae8d5f9ec4d8 (patch)
treeb988e82f6310a715a0907f635d87f09745924daf
parent9b3ad8bc46ee586513f8534245c1db9695d64067 (diff)
indent
-rw-r--r--sys/nfs/nfs_subs.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c
index be6dfd1dd81..e39e5657ed8 100644
--- a/sys/nfs/nfs_subs.c
+++ b/sys/nfs/nfs_subs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_subs.c,v 1.18 1997/04/28 00:37:06 angelos Exp $ */
+/* $OpenBSD: nfs_subs.c,v 1.19 1997/04/28 00:40:14 deraadt Exp $ */
/* $NetBSD: nfs_subs.c,v 1.27.4.3 1996/07/08 20:34:24 jtc Exp $ */
/*
@@ -644,17 +644,13 @@ nfsm_rpchead(cr, nmflag, procid, auth_type, auth_len, auth_str, verf_len,
/* Get a new (non-zero) xid */
- if ((nfs_xid == 0) && (nfs_xid_touched == 0))
- {
- nfs_xid = arc4random();
- nfs_xid_touched = 1;
- }
- else
- {
- while ((*xidp = arc4random() % 256) == 0)
- ;
-
- nfs_xid += *xidp;
+ if ((nfs_xid == 0) && (nfs_xid_touched == 0)) {
+ nfs_xid = arc4random();
+ nfs_xid_touched = 1;
+ } else {
+ while ((*xidp = arc4random() % 256) == 0)
+ ;
+ nfs_xid += *xidp;
}
*tl++ = *xidp = txdr_unsigned(nfs_xid);