From 6eb33543cbcae7a3bd10c1d2ae212c69c4b21dc0 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 27 Jan 2023 10:20:13 +0100 Subject: [PATCH] configure: Fix C99 compatibility issue Avoid calling the undeclared exit function. This avoids a check failure with a future compiler that does not support implicit function declarations. --- nufxlib/configure | 2 +- nufxlib/configure.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nufxlib/configure b/nufxlib/configure index 2895a5e..0709131 100755 --- a/nufxlib/configure +++ b/nufxlib/configure @@ -4033,7 +4033,7 @@ else int count; char buf[8]; count = sprintf(buf, "123"); /* should return three */ - exit(count != 3); + return count != 3; } _ACEOF diff --git a/nufxlib/configure.in b/nufxlib/configure.in index b197046..5a2b713 100644 --- a/nufxlib/configure.in +++ b/nufxlib/configure.in @@ -134,7 +134,7 @@ AC_CACHE_VAL(nufxlib_cv_sprintf_returns_int, [ int count; char buf[8]; count = sprintf(buf, "123"); /* should return three */ - exit(count != 3); + return count != 3; } ], [nufxlib_cv_sprintf_returns_int=yes], [nufxlib_cv_sprintf_returns_int=no],