From: Timo Sirainen Date: Mon, 13 Apr 2009 18:17:17 +0000 (-0400) Subject: Removed syslog-util.*, they were already moved to lib-master. X-Git-Tag: 2.0.alpha1~964 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a4126086ccf1041c7753e26174bd6780f20d2a67;p=thirdparty%2Fdovecot%2Fcore.git Removed syslog-util.*, they were already moved to lib-master. --HG-- branch : HEAD --- diff --git a/src/master/syslog-util.c b/src/master/syslog-util.c deleted file mode 100644 index 3d9a075e04..0000000000 --- a/src/master/syslog-util.c +++ /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 - -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 index 68e1250b20..0000000000 --- a/src/master/syslog-util.h +++ /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