Skip to content

Commit

Permalink
qb: Avoid using 'true' which could be a binary on some systems.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbea committed Oct 24, 2017
1 parent 9503edc commit e12d203
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions qb/qb.libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion qb/qb.params.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'*)
Expand Down

0 comments on commit e12d203

Please sign in to comment.