tests: Fix old-style function definitions
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 2 Mar 2023 03:36:07 +0000 (16:36 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 3 Mar 2023 01:07:36 +0000 (01:07 +0000)
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 <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
tests/oldquotas.c
tests/summary.c

index 54dc242248c2efc2c4ecc9256ffcbe9223dd77c0..37d4e2d37c11a1a78a9ec14fa93a5194b7a206b4 100644 (file)
@@ -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); }
index 87a64fd90efdf48432fd470dfa0982002e4d8f0a..ea48975316e62050b49fae5641fc5cbc50c6c53c 100644 (file)
@@ -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"