From 8ec3b37ed944a4115ddda440ac443fef54126c89 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 5 Feb 2001 03:07:33 +0000 Subject: Fix up the networking includes -Erik --- libc/misc/syslog/syslog.c | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) (limited to 'libc/misc/syslog') diff --git a/libc/misc/syslog/syslog.c b/libc/misc/syslog/syslog.c index 63e6f7994..53a00f86d 100644 --- a/libc/misc/syslog/syslog.c +++ b/libc/misc/syslog/syslog.c @@ -31,10 +31,8 @@ * SUCH DAMAGE. */ -#if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)syslog.c 8.4 (Berkeley) 3/18/94"; -#endif /* LIBC_SCCS and not lint */ - +#define __FORCE_GLIBC__ +#include /* * SYSLOG -- print message on log file * @@ -130,7 +128,7 @@ void syslog( int, const char *, ...); void vsyslog( int, const char *, va_list ); void openlog( const char *, int, int ); void closelog( void ); -void setlogmask( int ); +int setlogmask(int pmask); static void closelog_intern(int to_default) @@ -332,17 +330,16 @@ closelog( void ) closelog_intern(1); } -/* - * SETLOGMASK -- set the log mask level - */ -void -setlogmask( int pmask ) +/* setlogmask -- set the log mask level */ +int setlogmask(int pmask) { - int omask; - - omask = LogMask; - LOCK(); - if (pmask != 0) - LogMask = pmask; - UNLOCK(); + int omask; + + omask = LogMask; + LOCK(); + if (pmask != 0) + LogMask = pmask; + UNLOCK(); + return (omask); } + -- cgit v1.2.3