dovecot-1.3: Removed syslog-util.*, they were already moved to l...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Apr 13 21:17:24 EEST 2009
details: http://hg.dovecot.org/dovecot-1.3/rev/0f72263501c6
changeset: 9088:0f72263501c6
user: Timo Sirainen <tss at iki.fi>
date: Mon Apr 13 14:17:17 2009 -0400
description:
Removed syslog-util.*, they were already moved to lib-master.
diffstat:
2 files changed, 79 deletions(-)
src/master/syslog-util.c | 65 ----------------------------------------------
src/master/syslog-util.h | 14 ---------
diffs (87 lines):
diff -r 81ff88345441 -r 0f72263501c6 src/master/syslog-util.c
--- a/src/master/syslog-util.c Mon Apr 13 13:36:05 2009 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -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 -r 81ff88345441 -r 0f72263501c6 src/master/syslog-util.h
--- a/src/master/syslog-util.h Mon Apr 13 13:36:05 2009 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -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
More information about the dovecot-cvs
mailing list