[syslog-ng] [PATCH (3.4)] afsmtp: Add SCS_SMTP to lib/stats.h

Gergely Nagy algernon at balabit.hu
Fri Apr 27 16:30:05 CEST 2012


Add SCS_SMTP to lib/stats.h, so we get proper smtp stats too.

Signed-off-by: Gergely Nagy <algernon at balabit.hu>
---
 lib/stats.h             |    1 +
 modules/afsmtp/afsmtp.c |    4 ----
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/lib/stats.h b/lib/stats.h
index 99936da..9174408 100644
--- a/lib/stats.h
+++ b/lib/stats.h
@@ -70,6 +70,7 @@ enum
   SCS_SEVERITY       = 24,
   SCS_FACILITY       = 25,
   SCS_SENDER         = 26,
+  SCS_SMTP           = 27,
   SCS_MAX,
   SCS_SOURCE_MASK    = 0xff
 };
diff --git a/modules/afsmtp/afsmtp.c b/modules/afsmtp/afsmtp.c
index bd8adfe..841100d 100644
--- a/modules/afsmtp/afsmtp.c
+++ b/modules/afsmtp/afsmtp.c
@@ -33,10 +33,6 @@
 
 #include <libesmtp.h>
 
-#ifndef SCS_SMTP
-#define SCS_SMTP 0
-#endif
-
 typedef struct
 {
   gchar *name;
-- 
1.7.10




More information about the syslog-ng mailing list