From: Sam James Date: Thu, 9 Feb 2023 23:20:51 +0000 (+0000) Subject: ITS#10011 servers: fix -Wstrict-prototypes X-Git-Tag: OPENLDAP_REL_ENG_2_5_15~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=139effd7e64656f890366aa83756ae835edeba3d;p=thirdparty%2Fopenldap.git ITS#10011 servers: fix -Wstrict-prototypes 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 --- diff --git a/servers/slapd/syslog.c b/servers/slapd/syslog.c index 47ea1c6d9d..50f30530f9 100644 --- a/servers/slapd/syslog.c +++ b/servers/slapd/syslog.c @@ -209,7 +209,7 @@ openlog(const char *ident, int logstat, int logfac) } void -closelog() +closelog(void) { (void)close(LogFile); LogFile = -1;