From e12d203a76a236b51a0e5ca9092c51baa47cc279 Mon Sep 17 00:00:00 2001 From: orbea Date: Tue, 24 Oct 2017 00:18:23 -0700 Subject: [PATCH] qb: Avoid using 'true' which could be a binary on some systems. --- qb/qb.libs.sh | 4 ++-- qb/qb.params.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qb/qb.libs.sh b/qb/qb.libs.sh index 0697cb0379..42f2eaa782 100644 --- a/qb/qb.libs.sh +++ b/qb/qb.libs.sh @@ -57,7 +57,7 @@ check_lib() #$1 = HAVE_$1 $2 = lib $3 = function in lib $4 = extralibs $5 = head exit 1 } - true + return 0 } check_lib_cxx() #$1 = HAVE_$1 $2 = lib $3 = function in lib $4 = extralibs $5 = critical error message [checked only if non-empty] @@ -93,7 +93,7 @@ check_lib_cxx() #$1 = HAVE_$1 $2 = lib $3 = function in lib $4 = extralibs $5 = } - true + return 0 } check_code_c() diff --git a/qb/qb.params.sh b/qb/qb.params.sh index d37419e6a5..68048f2be6 100644 --- a/qb/qb.params.sh +++ b/qb/qb.params.sh @@ -32,7 +32,7 @@ EOF while IFS='=#' read VAR VAL COMMENT; do VAR=$(echo "${VAR##HAVE_}" | tr '[:upper:]' '[:lower:]') case "$VAR" in - 'c89_'*) true;; + 'c89_'*) continue;; *) case "$VAL" in 'yes'*)