diff options
author | Peter Eisentraut | 2016-08-30 16:00:00 +0000 |
---|---|---|
committer | Peter Eisentraut | 2016-09-30 18:03:57 +0000 |
commit | 1c0cf52b39ca3a9a79661129cff918dc000a55eb (patch) | |
tree | 2cb086613ab3b89f60a1c3358cdb674e123d82b4 /configure | |
parent | f1a469c9f1cfeab9f9c7d4a5d3e75892e7b6f60c (diff) |
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: Heikki Linnakangas <hlinnaka@iki.fi>
Reviewed-by: Thomas Munro <thomas.munro@enterprisedb.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/configure b/configure index 55c771a11e9..3eb0faf77dc 100755 --- a/configure +++ b/configure @@ -13594,8 +13594,10 @@ int does_int64_work() return 0; return 1; } + +int main() { - exit(! does_int64_work()); + return (! does_int64_work()); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : @@ -13676,8 +13678,10 @@ int does_int64_work() return 0; return 1; } + +int main() { - exit(! does_int64_work()); + return (! does_int64_work()); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : @@ -13770,8 +13774,10 @@ int does_int64_snprintf_work() return 0; /* either multiply or snprintf is busted */ return 1; } + +int main() { - exit(! does_int64_snprintf_work()); + return (! does_int64_snprintf_work()); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : |