]> andersk Git - moira.git/blobdiff - lib/critical.c
Build shared libmoira via libtool.
[moira.git] / lib / critical.c
index c6971ded2266328c5a95e5517748eb4e92a47b2a..f4ef4b2d90af3b0bd853ef4412daa0961484198b 100644 (file)
@@ -33,15 +33,13 @@ RCSID("$Header$");
 /* mode to create the file with */
 #define LOGFILEMODE    0644
 
-extern char *whoami;
-
 /* This routine sends a class MOIRA zephyrgram of specified instance
  * and logs to a special logfile the message passed to it via msg
  * and args in printf format.  *** It expects the global variable
  * whoami to be defined and contain the name of the calling program.
  */
 
-void critical_alert(char *instance, char *msg, ...)
+void critical_alert(char *whoami, char *instance, char *msg, ...)
 {
   FILE *crit;
   char *buf;
@@ -116,7 +114,7 @@ void send_zgram(char *inst, char *msg)
   if (buf)
     {
       sprintf(buf, "MOIRA: %s %s", inst, msg);
-      syslog(LOG_ERR, buf);
+      syslog(LOG_ERR, "%s", buf);
       free(buf);
     }
 #endif
This page took 0.033711 seconds and 4 git commands to generate.