]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10011 servers: fix -Wstrict-prototypes
authorSam James <sam@gentoo.org>
Thu, 9 Feb 2023 23:20:51 +0000 (23:20 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 17 Apr 2023 18:48:49 +0000 (18:48 +0000)
For more information, see LWN.net [0] or LLVM's Discourse [1], the Gentoo wiki [2],
or the (new) c-std-porting mailing list [3].

[0] https://lwn.net/Articles/913505/
[1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213
[2] https://wiki.gentoo.org/wiki/Modern_C_porting
[3] hosted at lists.linux.dev.

Signed-off-by: Sam James <sam@gentoo.org>
servers/slapd/syslog.c

index 47ea1c6d9d721d70986756e4c750831a63f95370..50f30530f92724ac0a6dbb242e9ad42067cdc22c 100644 (file)
@@ -209,7 +209,7 @@ openlog(const char *ident, int logstat, int logfac)
 }
 
 void
-closelog()
+closelog(void)
 {
        (void)close(LogFile);
        LogFile = -1;