[syslog-ng] 1.9.11 patch for src/stats.c
Albert Chin
syslog-ng at mlists.thewrittenword.com
Fri May 26 01:26:34 CEST 2006
src/stats.c has the following:
gchar *tag_names[SC_TYPE_MAX] =
{
[SC_TYPE_DROPPED] = "dropped",
[SC_TYPE_PROCESSED] = "processed",
};
"[SC_TYPE_DROPPED]" is a GCC thing. I guess GCC allows you to index
items in an array. But, the vendor compilers from Sun, HP, IBM, etc.
don't.
--
albert chin (china at thewrittenword.com)
-- snip snip
Index: src/stats.c
===================================================================
--- src/stats.c.orig 2006-02-11 04:57:29.000000000 -0600
+++ src/stats.c 2006-05-25 17:14:38.681857000 -0500
@@ -143,8 +143,8 @@
StatsCounterType type;
gchar *tag_names[SC_TYPE_MAX] =
{
- [SC_TYPE_DROPPED] = "dropped",
- [SC_TYPE_PROCESSED] = "processed",
+ "dropped",
+ "processed"
};
e = msg_event_create(EVT_PRI_NOTICE, "Log statistics", NULL);
More information about the syslog-ng
mailing list