apps/apps.c: harmonize print_bignum_var output with coding style.
authorAndy Polyakov <appro@openssl.org>
Wed, 25 Jul 2018 09:13:58 +0000 (11:13 +0200)
committerAndy Polyakov <appro@openssl.org>
Thu, 26 Jul 2018 11:48:34 +0000 (13:48 +0200)
Reviewed-by: Rich Salz <rsalz@openssl.org>
apps/apps.c

index 2740275fe5cab21f618b9f9e00817a9dea4caa9e..4090e605e5415bb66fc04178a83dcaea899e8c7e 100644 (file)
@@ -1188,16 +1188,15 @@ void print_bignum_var(BIO *out, const BIGNUM *in, const char *var,
 {
     BIO_printf(out, "    static unsigned char %s_%d[] = {", var, len);
     if (BN_is_zero(in)) {
-        BIO_printf(out, "\n\t0x00");
+        BIO_printf(out, "\n        0x00");
     } else {
         int i, l;
 
         l = BN_bn2bin(in, buffer);
         for (i = 0; i < l; i++) {
-            if ((i % 10) == 0)
-                BIO_printf(out, "\n\t");
+            BIO_printf(out, (i % 10) == 0 ? "\n        " : " ");
             if (i < l - 1)
-                BIO_printf(out, "0x%02X, ", buffer[i]);
+                BIO_printf(out, "0x%02X,", buffer[i]);
             else
                 BIO_printf(out, "0x%02X", buffer[i]);
         }