-/* $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 $ */
/*
/* 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);