Merge pull request #15 from fweimer-rh/c99

configure: Fix C99 compatibility issue
This commit is contained in:
Andy McFadden 2023-01-27 07:26:12 -08:00 committed by GitHub
commit 811ebe9ba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
nufxlib/configure vendored
View File

@ -4033,7 +4033,7 @@ else
int count;
char buf[8];
count = sprintf(buf, "123"); /* should return three */
exit(count != 3);
return count != 3;
}
_ACEOF

View File

@ -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],