summaryrefslogtreecommitdiff
path: root/lib/libcrypto/bn
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-28 18:58:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-09-28 18:58:34 +0000
commit3e7605b04462c3aed0bbc7ec73f3f6c3d74a8265 (patch)
treede570eebb6de0d56750f2e67b88e53391f78fb58 /lib/libcrypto/bn
parent9eba15ed170b9c2fa6e55af2fac68e86bd9e5c9f (diff)
remove excessive brackets on pointer math
Diffstat (limited to 'lib/libcrypto/bn')
-rw-r--r--lib/libcrypto/bn/bn_print.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/libcrypto/bn/bn_print.c b/lib/libcrypto/bn/bn_print.c
index f97f310eda9..1614a114491 100644
--- a/lib/libcrypto/bn/bn_print.c
+++ b/lib/libcrypto/bn/bn_print.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bn_print.c,v 1.27 2015/09/27 19:41:37 miod Exp $ */
+/* $OpenBSD: bn_print.c,v 1.28 2015/09/28 18:58:33 deraadt Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -84,16 +84,16 @@ BN_bn2hex(const BIGNUM *a)
}
p = buf;
if (BN_is_negative(a))
- *(p++) = '-';
+ *p++ = '-';
if (BN_is_zero(a))
- *(p++) = '0';
+ *p++ = '0';
for (i = a->top - 1; i >=0; i--) {
for (j = BN_BITS2 - 8; j >= 0; j -= 8) {
/* strip leading zeros */
v = ((int)(a->d[i] >> (long)j)) & 0xff;
if (z || (v != 0)) {
- *(p++) = Hex[v >> 4];
- *(p++) = Hex[v & 0x0f];
+ *p++ = Hex[v >> 4];
+ *p++ = Hex[v & 0x0f];
z = 1;
}
}
@@ -122,9 +122,9 @@ BN_bn2dec(const BIGNUM *a)
}
p = buf;
if (BN_is_negative(a))
- *(p++) = '-';
- *(p++) = '0';
- *(p++) = '\0';
+ *p++ = '-';
+ *p++ = '0';
+ *p++ = '\0';
return (buf);
}