mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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>
This commit is contained in:
@ -71,8 +71,10 @@ int does_int64_work()
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int
|
||||
main() {
|
||||
exit(! does_int64_work());
|
||||
return (! does_int64_work());
|
||||
}])],
|
||||
[Ac_cachevar=yes],
|
||||
[Ac_cachevar=no],
|
||||
|
@ -204,8 +204,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());
|
||||
}]])],
|
||||
[pgac_cv_snprintf_long_long_int_modifier=$pgac_modifier; break],
|
||||
[],
|
||||
|
Reference in New Issue
Block a user