]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fixup test.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 27 Oct 2015 14:11:51 +0000 (14:11 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 27 Oct 2015 14:11:51 +0000 (14:11 +0000)
git-svn-id: file:///svn/unbound/trunk@3519 be551aaa-1e26-0410-a405-d3ace91eadb9

configure
configure.ac

index bc763f95b93190a37a569f5fb43116901c589540..bc09113f1929c497643a7060ab5e30b2ca285b58 100755 (executable)
--- a/configure
+++ b/configure
@@ -18252,7 +18252,7 @@ else
 /* end confdefs.h.  */
 $ac_includes_default
 
-int main(void) { return (snprintf(NULL, 0, "test") == 5); }
+int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
 
 _ACEOF
 if ac_fn_c_try_run "$LINENO"; then :
index 79367280cc3b73c904accb6242b692f022c38e38..aa7a9f20bff8cdd484d0916ace6edea472cadb3f 100644 (file)
@@ -1008,7 +1008,7 @@ if test "x$ac_cv_func_snprintf" = xyes; then
        AC_MSG_CHECKING([for correct snprintf return value])
        AC_RUN_IFELSE([AC_LANG_SOURCE(AC_INCLUDES_DEFAULT
 [[
-int main(void) { return (snprintf(NULL, 0, "test") == 5); }
+int main(void) { return !(snprintf(NULL, 0, "test") == 4); }
 ]])], [AC_MSG_RESULT(yes)], [
                AC_MSG_RESULT(no)
                AC_DEFINE([SNPRINTF_RET_BROKEN], [], [define if (v)snprintf does not return length needed, (but length used)])