From: Joseph Sutton Date: Thu, 2 Mar 2023 03:36:07 +0000 (+1300) Subject: tests: Fix old-style function definitions X-Git-Tag: talloc-2.4.1~1542 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8514527bedf8958898d381d3f84f12dc3f3773e;p=thirdparty%2Fsamba.git tests: Fix old-style function definitions These files are included into the source3/wscript configure checks and so need to avoid C89 features otherwise they may cause an incorrect configure failure. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15281 Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/tests/oldquotas.c b/tests/oldquotas.c index 54dc242248c..37d4e2d37c1 100644 --- a/tests/oldquotas.c +++ b/tests/oldquotas.c @@ -112,4 +112,4 @@ bool disk_quotas(const char *path, uint64_t *bsize, uint64_t *dfree, #endif /* HAVE_SYS_QUOTAS */ -int main() { return disk_quotas(NULL, NULL, NULL, NULL); } +int main(void) { return disk_quotas(NULL, NULL, NULL, NULL); } diff --git a/tests/summary.c b/tests/summary.c index 87a64fd90ef..ea48975316e 100644 --- a/tests/summary.c +++ b/tests/summary.c @@ -2,7 +2,7 @@ void exit(int); -int main() +int main(void) { #if !defined(HAVE_FCNTL_LOCK) #error "ERROR: No locking available. Running Samba would be unsafe"