summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2015-11-10 11:14:47 +1100
committerDarren Tucker <dtucker@zip.com.au>2015-11-10 11:14:47 +1100
commit1560596f44c01bb0cef977816410950ed17b8ecd (patch)
tree0a60f1dcf9d410ccec8a77f9b0c380d498ad08b6
parente72a8575ffe1d8adff42c9abe9ca36938acc036b (diff)
Fix compiler warnings in the openssl header check.
Noted by Austin English.
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index a6f947eb8..1527a13dc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2345,6 +2345,7 @@ if test "x$openssl" = "xyes" ; then
2345 AC_MSG_CHECKING([OpenSSL header version]) 2345 AC_MSG_CHECKING([OpenSSL header version])
2346 AC_RUN_IFELSE( 2346 AC_RUN_IFELSE(
2347 [AC_LANG_PROGRAM([[ 2347 [AC_LANG_PROGRAM([[
2348 #include <stdlib.h>
2348 #include <stdio.h> 2349 #include <stdio.h>
2349 #include <string.h> 2350 #include <string.h>
2350 #include <openssl/opensslv.h> 2351 #include <openssl/opensslv.h>
@@ -2357,7 +2358,8 @@ if test "x$openssl" = "xyes" ; then
2357 if(fd == NULL) 2358 if(fd == NULL)
2358 exit(1); 2359 exit(1);
2359 2360
2360 if ((rc = fprintf(fd ,"%08x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0) 2361 if ((rc = fprintf(fd ,"%08lx (%s)\n",
2362 (unsigned long)OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
2361 exit(1); 2363 exit(1);
2362 2364
2363 exit(0); 2365 exit(0);