summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2001-01-26 12:04:20 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2001-01-26 12:04:20 +0000
commite0dd5013a9032ca0515b11c0700b862776a249e6 (patch)
treeca13f2a9a6421fb832074c7a3973715fcf0f6cc3
parenta35fc8c0e0c41c0e6a4d15f10830e55a41173829 (diff)
Pedantic style police
-rw-r--r--sbin/isakmpd/regress/b2n/b2ntest.c8
-rw-r--r--sbin/isakmpd/regress/crypto/cryptotest.c5
-rw-r--r--sbin/isakmpd/sysdep/common/libsysdep/arc4random.c8
3 files changed, 13 insertions, 8 deletions
diff --git a/sbin/isakmpd/regress/b2n/b2ntest.c b/sbin/isakmpd/regress/b2n/b2ntest.c
index 8868baed055..0c8959171e5 100644
--- a/sbin/isakmpd/regress/b2n/b2ntest.c
+++ b/sbin/isakmpd/regress/b2n/b2ntest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: b2ntest.c,v 1.3 1998/12/21 01:02:28 niklas Exp $ */
+/* $OpenBSD: b2ntest.c,v 1.4 2001/01/26 12:04:19 niklas Exp $ */
/* $EOM: b2ntest.c,v 1.4 1998/07/16 19:31:55 provos Exp $ */
/*
@@ -215,7 +215,8 @@ main (void)
b2n_div_r (d, n, m);
CMP_FAIL (d, "0xab");
- printf ("\nTesting: b2n_div: 0x0800000000000000000000004000000000000001 / 0xffab09909a00: ");
+ printf ("\nTesting: b2n_div: "
+ "0x0800000000000000000000004000000000000001 / 0xffab09909a00: ");
b2n_set_str (n, "0x0800000000000000000000004000000000000001");
b2n_set_str (m, "0xffab09909a00");
b2n_div_q (d, n, m);
@@ -227,7 +228,8 @@ main (void)
CMP_FAIL (n, "0x18083e83a98647cedae0b3e69a5e");
CMP_FAIL (m, "0x5b8bf98cac01");
- printf ("\nTesting: b2n_div: 0x0800000000000000000000004000000000000001 / 0x7b: ");
+ printf ("\nTesting: b2n_div: "
+ "0x0800000000000000000000004000000000000001 / 0x7b: ");
b2n_set_str (n, "0x0800000000000000000000004000000000000001");
b2n_set_str (m, "0x7b");
b2n_div (n, m, n, m);
diff --git a/sbin/isakmpd/regress/crypto/cryptotest.c b/sbin/isakmpd/regress/crypto/cryptotest.c
index 455957cf591..3e63435bfd7 100644
--- a/sbin/isakmpd/regress/crypto/cryptotest.c
+++ b/sbin/isakmpd/regress/crypto/cryptotest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptotest.c,v 1.3 1998/12/21 01:02:29 niklas Exp $ */
+/* $OpenBSD: cryptotest.c,v 1.4 2001/01/26 12:04:19 niklas Exp $ */
/* $EOM: cryptotest.c,v 1.5 1998/10/07 16:40:49 niklas Exp $ */
/*
@@ -78,7 +78,8 @@ special_test_blf (void)
u_int8_t *akey = "0123456789ABCDEFF0E1D2C3B4A59687";
u_int8_t *aiv = "FEDCBA9876543210";
u_int8_t data[] = "7654321 Now is the time for \0\0\0"; /* len 29 */
- u_int8_t *acipher = "6B77B4D63006DEE605B156E27403979358DEB9E7154616D959F1652BD5FF92CCE7";
+ u_int8_t *acipher
+ = "6B77B4D63006DEE605B156E27403979358DEB9E7154616D959F1652BD5FF92CCE7";
u_int8_t key[16], cipher[32], iv[8];
struct crypto_xf *xf;
struct keystate *ks;
diff --git a/sbin/isakmpd/sysdep/common/libsysdep/arc4random.c b/sbin/isakmpd/sysdep/common/libsysdep/arc4random.c
index fffc2c1d8b2..e38faec8d9f 100644
--- a/sbin/isakmpd/sysdep/common/libsysdep/arc4random.c
+++ b/sbin/isakmpd/sysdep/common/libsysdep/arc4random.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arc4random.c,v 1.1 2001/01/26 11:34:00 niklas Exp $ */
+/* $OpenBSD: arc4random.c,v 1.2 2001/01/26 12:04:19 niklas Exp $ */
/*
* Arc4 random number generator for OpenBSD.
@@ -93,8 +93,10 @@ arc4_stir(as)
read(fd, rdat.rnd, sizeof(rdat.rnd));
close(fd);
}
- /* fd < 0? Ah, what the heck. We'll just take whatever was on the
- * stack... */
+ /*
+ * fd < 0? Ah, what the heck. We'll just take whatever was on the
+ * stack...
+ */
arc4_addrandom(as, (void *) &rdat, sizeof(rdat));
}