From: Darren Tucker Date: Tue, 10 Nov 2015 00:14:47 +0000 (+1100) Subject: Fix compiler warnings in the openssl header check. X-Git-Tag: V_7_2_P1~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1560596f44c01bb0cef977816410950ed17b8ecd;p=thirdparty%2Fopenssh-portable.git Fix compiler warnings in the openssl header check. Noted by Austin English. --- 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 AC_MSG_CHECKING([OpenSSL header version]) AC_RUN_IFELSE( [AC_LANG_PROGRAM([[ + #include #include #include #include @@ -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);