diff --git a/src/modules/system/syslog.c b/src/modules/system/syslog.c index 5ed722f79669c46a886a77dc953d050e4183f2f8..cc4ae7fd8bf82a83f1eea17016bde4e01ec33f3f 100644 --- a/src/modules/system/syslog.c +++ b/src/modules/system/syslog.c @@ -1,5 +1,5 @@ /* - * $Id: syslog.c,v 1.7 1998/09/16 18:35:24 grubba Exp $ + * $Id: syslog.c,v 1.8 1998/09/17 21:48:09 grubba Exp $ * * Access to syslog from Pike. * @@ -17,7 +17,7 @@ #ifdef HAVE_SYSLOG -RCSID("$Id: syslog.c,v 1.7 1998/09/16 18:35:24 grubba Exp $"); +RCSID("$Id: syslog.c,v 1.8 1998/09/17 21:48:09 grubba Exp $"); #include "interpret.h" #include "svalue.h" @@ -173,22 +173,13 @@ void f_syslog(INT32 args) if(i & (1<<6)) pri |= LOG_INFO; if(i & (1<<6)) pri |= LOG_DEBUG; - reference_shared_string(s); - push_string(s); - push_string(make_shared_string("%")); - push_string(make_shared_string("%%")); - f_replace(3); - - message = sp[-1].u.string->str; - THREADS_ALLOW(); - syslog(pri, message, - "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s", "%s"); + syslog(pri, "%s", s->str); THREADS_DISALLOW(); - pop_n_elems(args + 1); + pop_n_elems(args); } void f_closelog(INT32 args)