summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn_ctx.c
diff options
context:
space:
mode:
authorderaadt <>2014-06-27 06:07:35 +0000
committerderaadt <>2014-06-27 06:07:35 +0000
commitefc653931afe9db67d5a0fb5dbe1d378cb27f869 (patch)
treea15b222a92fe994ec9b207cf12743f2f3cb61fa8 /src/lib/libcrypto/bn/bn_ctx.c
parent471ddd1a6eb81fac605c97cf281cb15028c7afff (diff)
downloadopenbsd-efc653931afe9db67d5a0fb5dbe1d378cb27f869.tar.gz
openbsd-efc653931afe9db67d5a0fb5dbe1d378cb27f869.tar.bz2
openbsd-efc653931afe9db67d5a0fb5dbe1d378cb27f869.zip
hand-KNF macro the do { } while loops
Diffstat (limited to 'src/lib/libcrypto/bn/bn_ctx.c')
-rw-r--r--src/lib/libcrypto/bn/bn_ctx.c24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/lib/libcrypto/bn/bn_ctx.c b/src/lib/libcrypto/bn/bn_ctx.c
index ed0f434e60..e3ea72516b 100644
--- a/src/lib/libcrypto/bn/bn_ctx.c
+++ b/src/lib/libcrypto/bn/bn_ctx.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_ctx.c,v 1.9 2014/06/12 15:49:28 deraadt Exp $ */ 1/* $OpenBSD: bn_ctx.c,v 1.10 2014/06/27 06:07:35 deraadt Exp $ */
2/* Written by Ulf Moeller for the OpenSSL project. */ 2/* Written by Ulf Moeller for the OpenSSL project. */
3/* ==================================================================== 3/* ====================================================================
4 * Copyright (c) 1998-2004 The OpenSSL Project. All rights reserved. 4 * Copyright (c) 1998-2004 The OpenSSL Project. All rights reserved.
@@ -179,15 +179,19 @@ ctxdbg(BN_CTX *ctx)
179 } 179 }
180 fprintf(stderr, "\n"); 180 fprintf(stderr, "\n");
181} 181}
182#define CTXDBG_ENTRY(str, ctx) do { \ 182#define CTXDBG_ENTRY(str, ctx) \
183 ctxdbg_cur = (str); \ 183 do { \
184 fprintf(stderr,"Starting %s\n", ctxdbg_cur); \ 184 ctxdbg_cur = (str); \
185 ctxdbg(ctx); \ 185 fprintf(stderr, "Starting %s\n", ctxdbg_cur); \
186 } while(0) 186 ctxdbg(ctx); \
187#define CTXDBG_EXIT(ctx) do { \ 187 } while(0)
188 fprintf(stderr,"Ending %s\n", ctxdbg_cur); \ 188
189 ctxdbg(ctx); \ 189#define CTXDBG_EXIT(ctx) \
190 } while(0) 190 do { \
191 fprintf(stderr, "Ending %s\n", ctxdbg_cur); \
192 ctxdbg(ctx); \
193 } while(0)
194
191#define CTXDBG_RET(ctx,ret) 195#define CTXDBG_RET(ctx,ret)
192#else 196#else
193#define CTXDBG_ENTRY(str, ctx) 197#define CTXDBG_ENTRY(str, ctx)