Commit 1c0cf52b authored by Peter Eisentraut's avatar Peter Eisentraut

Use return instead of exit() in configure

Using exit() requires stdlib.h, which is not included.  Use return
instead.  Also add return type for main().
Reviewed-by: default avatarHeikki Linnakangas <hlinnaka@iki.fi>
Reviewed-by: default avatarThomas Munro <thomas.munro@enterprisedb.com>
parent f1a469c9
...@@ -71,8 +71,10 @@ int does_int64_work() ...@@ -71,8 +71,10 @@ int does_int64_work()
return 0; return 0;
return 1; return 1;
} }
int
main() { main() {
exit(! does_int64_work()); return (! does_int64_work());
}])], }])],
[Ac_cachevar=yes], [Ac_cachevar=yes],
[Ac_cachevar=no], [Ac_cachevar=no],
......
...@@ -204,8 +204,10 @@ int does_int64_snprintf_work() ...@@ -204,8 +204,10 @@ int does_int64_snprintf_work()
return 0; /* either multiply or snprintf is busted */ return 0; /* either multiply or snprintf is busted */
return 1; return 1;
} }
int
main() { main() {
exit(! does_int64_snprintf_work()); return (! does_int64_snprintf_work());
}]])], }]])],
[pgac_cv_snprintf_long_long_int_modifier=$pgac_modifier; break], [pgac_cv_snprintf_long_long_int_modifier=$pgac_modifier; break],
[], [],
......
...@@ -13594,8 +13594,10 @@ int does_int64_work() ...@@ -13594,8 +13594,10 @@ int does_int64_work()
return 0; return 0;
return 1; return 1;
} }
int
main() { main() {
exit(! does_int64_work()); return (! does_int64_work());
} }
_ACEOF _ACEOF
if ac_fn_c_try_run "$LINENO"; then : if ac_fn_c_try_run "$LINENO"; then :
...@@ -13676,8 +13678,10 @@ int does_int64_work() ...@@ -13676,8 +13678,10 @@ int does_int64_work()
return 0; return 0;
return 1; return 1;
} }
int
main() { main() {
exit(! does_int64_work()); return (! does_int64_work());
} }
_ACEOF _ACEOF
if ac_fn_c_try_run "$LINENO"; then : if ac_fn_c_try_run "$LINENO"; then :
...@@ -13770,8 +13774,10 @@ int does_int64_snprintf_work() ...@@ -13770,8 +13774,10 @@ int does_int64_snprintf_work()
return 0; /* either multiply or snprintf is busted */ return 0; /* either multiply or snprintf is busted */
return 1; return 1;
} }
int
main() { main() {
exit(! does_int64_snprintf_work()); return (! does_int64_snprintf_work());
} }
_ACEOF _ACEOF
if ac_fn_c_try_run "$LINENO"; then : if ac_fn_c_try_run "$LINENO"; then :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment