summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2021-11-19 17:29:17 +0000
committerschwarze <>2021-11-19 17:29:17 +0000
commit583fedcd909f68391d30cdbe0fb2c65baf23e6d3 (patch)
tree66cbc9552876e304085c3f63f813528f1f1af481 /src
parentd621a20aea37f0a445975601bf8b27ff6a11e396 (diff)
downloadopenbsd-583fedcd909f68391d30cdbe0fb2c65baf23e6d3.tar.gz
openbsd-583fedcd909f68391d30cdbe0fb2c65baf23e6d3.tar.bz2
openbsd-583fedcd909f68391d30cdbe0fb2c65baf23e6d3.zip
Make function prototype parsing a bit stricter,
reducing the risk of accidental misparsing: Require whitespace after the function return type (before the asterisk indicating that the function returns a pointer, if any) and do not accept whitespace between the function name and the opening parenthesis of the parameter list. These changes are not a problem because we want that style for KNF reasons anyway.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/regress/lib/libcrypto/man/check_complete.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/man/check_complete.pl b/src/regress/lib/libcrypto/man/check_complete.pl
index 1086fd8627..d31b7c6756 100755
--- a/src/regress/lib/libcrypto/man/check_complete.pl
+++ b/src/regress/lib/libcrypto/man/check_complete.pl
@@ -228,7 +228,7 @@ try_again:
228 } 228 }
229 next; 229 next;
230 } 230 }
231 if (/^\w+(?:\(\w+\))?(?:\s+\w+)?(?:\s+|\s*\(?\*\s*)(\w+)\s*\(/) { 231 if (/^\w+(?:\(\w+\))?(?:\s+\w+)?\s+(?:\(?\*\s*)?(\w+)\(/) {
232 my $id = $1; 232 my $id = $1;
233 /\);$/ or $in_function = 1; 233 /\);$/ or $in_function = 1;
234 unless (system "$MANW $id > /dev/null 2>&1") { 234 unless (system "$MANW $id > /dev/null 2>&1") {