summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2002-09-23 16:54:10 -0700
committerTim Rice <tim@multitalents.net>2002-09-23 16:54:10 -0700
commit2c961cecb008de61eb0fdd220f406d08a788ee55 (patch)
treef35ecee63557b298bac472682ad0095ed024b7aa
parent6f0a188857a459b743d27045cdb8760c903ad3d3 (diff)
downloadopenssh-git-2c961cecb008de61eb0fdd220f406d08a788ee55.tar.gz
[configure.ac] s/return/exit/ patch by dtucker@zip.com.au
From autoconf guidelines: "Test programs should exit, not return, from main, because on some systems (old Suns, at least) the argument to return in main is ignored."
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac12
2 files changed, 10 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index e99748ec..1f9ef025 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+20020923
+ - (tim) [configure.ac] s/return/exit/ patch by dtucker@zip.com.au
+
20020922
- (djm) OpenBSD CVS Sync
- stevesk@cvs.openbsd.org 2002/09/19 14:53:14
@@ -693,4 +696,4 @@
save auth method before monitor_reset_key_state(); bugzilla bug #284;
ok provos@
-$Id: ChangeLog,v 1.2475 2002/09/21 15:26:51 djm Exp $
+$Id: ChangeLog,v 1.2476 2002/09/23 23:54:10 tim Exp $
diff --git a/configure.ac b/configure.ac
index 84e6adec..f88d993e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-# $Id: configure.ac,v 1.87 2002/09/12 00:33:00 djm Exp $
+# $Id: configure.ac,v 1.88 2002/09/23 23:54:12 tim Exp $
AC_INIT
AC_CONFIG_SRCDIR([ssh.c])
@@ -497,7 +497,7 @@ AC_TRY_RUN(
[
#include <sys/types.h>
#include <dirent.h>
-int main(void){struct dirent d;return(sizeof(d.d_name)<=sizeof(char));}
+int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
],
[AC_MSG_RESULT(yes)],
[
@@ -528,7 +528,7 @@ AC_ARG_WITH(skey,
[
#include <stdio.h>
#include <skey.h>
-int main() { char *ff = skey_keyinfo(""); ff=""; return 0; }
+int main() { char *ff = skey_keyinfo(""); ff=""; exit(0); }
],
[AC_MSG_RESULT(yes)],
[
@@ -668,7 +668,7 @@ if test "x$ac_cv_func_snprintf" = "xyes" ; then
AC_TRY_RUN(
[
#include <stdio.h>
-int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');}
+int main(void){char b[5];snprintf(b,5,"123456789");exit(b[4]!='\0');}
],
[AC_MSG_RESULT(yes)],
[
@@ -851,7 +851,7 @@ AC_TRY_RUN(
[
#include <string.h>
#include <openssl/opensslv.h>
-int main(void) { return(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
+int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
],
[
AC_MSG_RESULT(yes)
@@ -877,7 +877,7 @@ AC_TRY_RUN(
[
#include <string.h>
#include <openssl/rand.h>
-int main(void) { return(RAND_status() == 1 ? 0 : 1); }
+int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
],
[
OPENSSL_SEEDS_ITSELF=yes