Skip to content
Snippets Groups Projects
Commit f7b7787c authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Cleaned up some of the syslog() code.

Rev: src/modules/system/syslog.c:1.8
parent e8475e7e
No related branches found
No related tags found
No related merge requests found
/*
* $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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment