Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/libhack Return 0xff from setlogmask() instead ...



details:   https://anonhg.NetBSD.org/src/rev/3237087d2e69
branches:  trunk
changeset: 579909:3237087d2e69
user:      he <he%NetBSD.org@localhost>
date:      Thu Mar 31 13:03:34 2005 +0000

description:
Return 0xff from setlogmask() instead of falling off the end of
the int-returning function without returning a value.  The 0xff
value is taken from the C library and is the default log mask.

diffstat:

 distrib/utils/libhack/syslog.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 8be45d57c73a -r 3237087d2e69 distrib/utils/libhack/syslog.c
--- a/distrib/utils/libhack/syslog.c    Thu Mar 31 12:56:49 2005 +0000
+++ b/distrib/utils/libhack/syslog.c    Thu Mar 31 13:03:34 2005 +0000
@@ -16,6 +16,7 @@
 int
 setlogmask(int mask)
 {
+       return 0xff;
 }
 
 __strong_alias(_syslog, syslog)



Home | Main Index | Thread Index | Old Index