]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Fix compiler warnings in the openssl header check.
authorDarren Tucker <dtucker@zip.com.au>
Tue, 10 Nov 2015 00:14:47 +0000 (11:14 +1100)
committerDarren Tucker <dtucker@zip.com.au>
Tue, 10 Nov 2015 00:14:47 +0000 (11:14 +1100)
Noted by Austin English.

configure.ac

index a6f947eb8db09a8ac170a4e3cff1b801b6c8b330..1527a13dc465cb99308afb9a2d3ce2f1d3bf2881 100644 (file)
@@ -2345,6 +2345,7 @@ if test "x$openssl" = "xyes" ; then
        AC_MSG_CHECKING([OpenSSL header version])
        AC_RUN_IFELSE(
                [AC_LANG_PROGRAM([[
+       #include <stdlib.h>
        #include <stdio.h>
        #include <string.h>
        #include <openssl/opensslv.h>
@@ -2357,7 +2358,8 @@ if test "x$openssl" = "xyes" ; then
                if(fd == NULL)
                        exit(1);
 
-               if ((rc = fprintf(fd ,"%08x (%s)\n", OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
+               if ((rc = fprintf(fd ,"%08lx (%s)\n",
+                   (unsigned long)OPENSSL_VERSION_NUMBER, OPENSSL_VERSION_TEXT)) <0)
                        exit(1);
 
                exit(0);