diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-02-05 03:07:33 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-02-05 03:07:33 +0000 |
commit | 8ec3b37ed944a4115ddda440ac443fef54126c89 (patch) | |
tree | e8b3a37f3c879afbf4754870a31c1c4c427dfd20 | |
parent | 60ecd672487e4039efe8a13df1b0b3404992a809 (diff) |
Fix up the networking includes
-Erik
-rw-r--r-- | libc/misc/syslog/syslog.c | 31 |
1 files changed, 14 insertions, 17 deletions
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 <features.h> /* * 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); } + |