[openssl-commits] [openssl] master update
Rich Salz
rsalz at openssl.org
Sun Apr 16 14:23:14 UTC 2017
The branch master has been updated
via cad3f9dacbd03ea686a26690c8f4e58866d08104 (commit)
from 7db0289ea70b9bec94e32350cc8ec9da96ab2776 (commit)
- Log -----------------------------------------------------------------
commit cad3f9dacbd03ea686a26690c8f4e58866d08104
Author: Rich Salz <rsalz at openssl.org>
Date: Fri Apr 14 21:20:54 2017 -0400
Add -f -r flags to find-unused-errs
Reviewed-by: Andy Polyakov <appro at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3230)
-----------------------------------------------------------------------
Summary of changes:
util/find-unused-errs | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/util/find-unused-errs b/util/find-unused-errs
index 68cf66b..cd1026d 100755
--- a/util/find-unused-errs
+++ b/util/find-unused-errs
@@ -13,8 +13,27 @@
export X1=/tmp/f.1.$$
export X2=/tmp/f.2.$$
+case "$1" in
+ -f)
+ PAT='_F_'
+ echo Functions only
+ ;;
+ -[er])
+ PAT='_R_'
+ echo Reason codes only
+ ;;
+ "")
+ PAT='_[FR]_'
+ echo Function and reasons
+ ;;
+ *)
+ echo "Usage error; one of -[efr] required."
+ exit 1;
+ ;;
+esac
+
cd include/openssl || exit 1
-grep '_[RF]_' * | awk '{print $3;}' | sort -u >$X1
+grep "$PAT" * | grep -v ERR_FATAL_ERROR | awk '{print $3;}' | sort -u >$X1
cd ../..
for F in `cat $X1` ; do
More information about the openssl-commits
mailing list