summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2024-07-16 06:52:07 +0200
committerRichard Levitte <levitte@openssl.org>2024-08-21 10:55:59 +0200
commit772481cf7c3f95e5c8d82ef4094d9030f8432460 (patch)
treec840d57cccdb6185de9d410909cfc52c2e29181a /util
parentEnable RSA-SM3 in the default provider (diff)
downloadopenssl-772481cf7c3f95e5c8d82ef4094d9030f8432460.tar.xz
openssl-772481cf7c3f95e5c8d82ef4094d9030f8432460.zip
fix: Have util/mkerr.pl comply better with our coding style
util/mkerr.pl produced lines like these: {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE), "operation not supported for this keytype"}, According to our coding style, they should look like this: {ERR_PACK(ERR_LIB_EVP, 0, EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE), "operation not supported for this keytype"}, This nit was correctly picked up by util/check-format.pl Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Viktor Dukhovni <viktor@openssl.org> (Merged from https://github.com/openssl/openssl/pull/24902)
Diffstat (limited to 'util')
-rwxr-xr-xutil/mkerr.pl11
1 files changed, 5 insertions, 6 deletions
diff --git a/util/mkerr.pl b/util/mkerr.pl
index 6f22bbd582..ecea87b380 100755
--- a/util/mkerr.pl
+++ b/util/mkerr.pl
@@ -567,12 +567,11 @@ EOF
$rn =~ tr/_[A-Z]/ [a-z]/;
$strings{$i} = $rn;
}
- my $short = " {ERR_PACK($pack_lib, 0, $i), \"$rn\"},";
- if ( length($short) <= 80 ) {
- print OUT "$short\n";
- } else {
- print OUT " {ERR_PACK($pack_lib, 0, $i),\n \"$rn\"},\n";
- }
+ my $lines;
+ $lines = " {ERR_PACK($pack_lib, 0, $i), \"$rn\"},";
+ $lines = " {ERR_PACK($pack_lib, 0, $i),\n \"$rn\"},"
+ if length($lines) > 80;
+ print OUT "$lines\n";
}
print OUT <<"EOF";
{0, NULL}