]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Removed syslog-util.*, they were already moved to lib-master.
authorTimo Sirainen <tss@iki.fi>
Mon, 13 Apr 2009 18:17:17 +0000 (14:17 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 13 Apr 2009 18:17:17 +0000 (14:17 -0400)
--HG--
branch : HEAD

src/master/syslog-util.c [deleted file]
src/master/syslog-util.h [deleted file]

diff --git a/src/master/syslog-util.c b/src/master/syslog-util.c
deleted file mode 100644 (file)
index 3d9a075..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-/* Copyright (c) 2005-2009 Dovecot authors, see the included COPYING file */
-
-#include "lib.h"
-#include "syslog-util.h"
-#include <syslog.h>
-
-struct syslog_facility_list syslog_facilities[] = {
-#ifdef LOG_AUTH
-       { "auth", LOG_AUTH },
-#endif
-#ifdef LOG_AUTHPRIV
-       { "authpriv", LOG_AUTHPRIV },
-#endif
-#ifdef LOG_CRON
-       { "cron", LOG_CRON },
-#endif
-#ifdef LOG_DAEMON
-       { "daemon", LOG_DAEMON },
-#endif
-#ifdef LOG_FTP
-       { "ftp", LOG_FTP },
-#endif
-#ifdef LOG_KERN
-       { "kern", LOG_KERN },
-#endif
-#ifdef LOG_LPR
-       { "lpr", LOG_LPR },
-#endif
-#ifdef LOG_MAIL
-       { "mail", LOG_MAIL },
-#endif
-#ifdef LOG_NEWS
-       { "news", LOG_NEWS },
-#endif
-#ifdef LOG_SYSLOG
-       { "syslog", LOG_SYSLOG },
-#endif
-#ifdef LOG_UUCP
-       { "uucp", LOG_UUCP },
-#endif
-       { "user", LOG_USER },
-       { "local0", LOG_LOCAL0 },
-       { "local1", LOG_LOCAL1 },
-       { "local2", LOG_LOCAL2 },
-       { "local3", LOG_LOCAL3 },
-       { "local4", LOG_LOCAL4 },
-       { "local5", LOG_LOCAL5 },
-       { "local6", LOG_LOCAL6 },
-       { "local7", LOG_LOCAL7 },
-
-       { NULL, 0 }
-};
-
-bool syslog_facility_find(const char *name, int *facility_r)
-{
-       int i;
-
-       for (i = 0; syslog_facilities[i].name != NULL; i++) {
-               if (strcmp(syslog_facilities[i].name, name) == 0) {
-                       *facility_r = syslog_facilities[i].facility;
-                       return TRUE;
-               }
-       }
-       return FALSE;
-}
diff --git a/src/master/syslog-util.h b/src/master/syslog-util.h
deleted file mode 100644 (file)
index 68e1250..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#ifndef SYSLOG_UTIL_H
-#define SYSLOG_UTIL_H
-
-struct syslog_facility_list {
-       const char *name;
-       int facility;
-};
-
-extern struct syslog_facility_list syslog_facilities[];
-
-/* Returns TRUE if found. */
-bool syslog_facility_find(const char *name, int *facility_r);
-
-#endif