1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

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 <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-03-02 16:36:07 +13:00 committed by Andrew Bartlett
parent b73622bf53
commit e8514527be
2 changed files with 2 additions and 2 deletions

View 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); }

View 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"