Module Name:    src
Committed By:   enami
Date:           Sat Nov 26 13:53:37 UTC 2011

Modified Files:
        src/sys/lib/libkern: arc4random.c

Log Message:
Fix white space usage.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/lib/libkern/arc4random.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/lib/libkern/arc4random.c
diff -u src/sys/lib/libkern/arc4random.c:1.23 src/sys/lib/libkern/arc4random.c:1.24
--- src/sys/lib/libkern/arc4random.c:1.23	Sun Nov 20 15:37:31 2011
+++ src/sys/lib/libkern/arc4random.c	Sat Nov 26 13:53:37 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: arc4random.c,v 1.23 2011/11/20 15:37:31 para Exp $	*/
+/*	$NetBSD: arc4random.c,v 1.24 2011/11/26 13:53:37 enami Exp $	*/
 
 /*-
  * Copyright (c) 2002, 2011 The NetBSD Foundation, Inc.
@@ -160,9 +160,9 @@ arc4_randrekey(void *arg)
 		if (callback_pending) {
 			if (arc4_numbytes > ARC4_HARDMAX) {
 				printf("arc4random: WARNING, hit 2^29 bytes, "
-				       "forcibly rekeying.\n");
+				    "forcibly rekeying.\n");
 				r = rnd_extract_data(key, ARC4_KEYBYTES,
-						     RND_EXTRACT_ANY);
+				    RND_EXTRACT_ANY);
 				rndsink_detach(&rs);
 				callback_pending = 0;
 				goto got_entropy;
@@ -195,7 +195,7 @@ got_entropy:
 		rs.cb = arc4_randrekey;
 		rs.arg = &rs;
 		rs.len = ARC4_KEYBYTES;
-               	rndsink_attach(&rs);
+		rndsink_attach(&rs);
 	}
 #endif
 	/*
@@ -282,13 +282,13 @@ arc4_randbyte(void)
 u_int32_t
 arc4random(void)
 {
-    int ret;
-    u_int8_t *retc;
+	int ret;
+	u_int8_t *retc;
 
-    retc = (u_int8_t *)&ret;
+	retc = (u_int8_t *)&ret;
 
-    arc4randbytes(retc, sizeof(u_int32_t));
-    return ret;
+	arc4randbytes(retc, sizeof(u_int32_t));
+	return ret;
 }
 
 static inline void
@@ -307,7 +307,7 @@ arc4randbytes(void *p, size_t len)
 	/* Initialize array if needed. */
 	if (!arc4_initialized) {
 		arc4_init();
-                /* avoid conditionalizing locking */
+		/* avoid conditionalizing locking */
 		return arc4randbytes_unlocked(p, len);
 	}
 	mutex_spin_enter(&arc4_mtx);

Reply via email to