[openssh-commits] [openssh] branch master updated: Fix configure implicit declaration and format warnings.
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Dec 6 20:53:32 AEDT 2024
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
The following commit(s) were added to refs/heads/master by this push:
new f129b6ee Fix configure implicit declaration and format warnings.
f129b6ee is described below
commit f129b6ee1d4361799e65307216e3a4d5544356b7
Author: Jonas 'Sortie' Termansen <sortie at maxsi.org>
AuthorDate: Sat Nov 2 22:05:45 2024 +0100
Fix configure implicit declaration and format warnings.
---
configure.ac | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/configure.ac b/configure.ac
index 6c451f4c..e5da9336 100644
--- a/configure.ac
+++ b/configure.ac
@@ -628,6 +628,7 @@ case "$host" in
AC_MSG_CHECKING([if compiler allows macro redefinitions])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[
+#include <stdlib.h>
#define testmacro foo
#define testmacro bar]],
[[ exit(0); ]])],
@@ -4407,7 +4408,11 @@ int main(void)
long long num = 0x7fffffffffffffffll;
#endif
strcpy(expected_out, "9223372036854775807");
+#if (SIZEOF_LONG_INT == 8)
+ snprintf(buf, mazsize, "%ld", num);
+#else
snprintf(buf, mazsize, "%lld", num);
+#endif
if(strcmp(buf, expected_out) != 0)
exit(1);
exit(0);
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list