diff options
author | Evan Huus <eapache@gmail.com> | 2012-08-19 13:38:53 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2012-08-19 13:38:53 +0000 |
commit | f385acc4611e9dce8f47287caf54ce644c4a2c53 (patch) | |
tree | ccf0eca1ba1c63fadb79a308cd8e57337360032c /tools | |
parent | 85c17764299237235bea8d1d1eddac813a73993c (diff) |
From Toralf Förster via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7652
Use a fast bash built-in rather than a slow call out to `expr` to increment
the loop count.
svn path=/trunk/; revision=44580
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/fuzz-test.sh | 2 | ||||
-rwxr-xr-x | tools/randpkt-test.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/fuzz-test.sh b/tools/fuzz-test.sh index 8bf888c958..d890080340 100755 --- a/tools/fuzz-test.sh +++ b/tools/fuzz-test.sh @@ -213,7 +213,7 @@ function exit_error() { # Iterate over our capture files. PASS=0 while [ \( $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 \) -a $DONE -ne 1 ] ; do - PASS=`expr $PASS + 1` + let PASS=$PASS+1 echo "Starting pass $PASS:" RUN=0 diff --git a/tools/randpkt-test.sh b/tools/randpkt-test.sh index a241c08c37..2c251e6b66 100755 --- a/tools/randpkt-test.sh +++ b/tools/randpkt-test.sh @@ -104,7 +104,7 @@ function exit_error() { # Iterate over our capture files. PASS=0 while [ $PASS -lt $MAX_PASSES -o $MAX_PASSES -lt 1 ] ; do - PASS=`expr $PASS + 1` + let PASS=$PASS+1 echo "Pass $PASS:" for PKT_TYPE in $PKT_TYPES ; do |