[syslog-ng] 1.9.11 patch for src/stats.c

Balazs Scheidler bazsi at balabit.hu
Fri May 26 21:34:09 CEST 2006


On Thu, 2006-05-25 at 18:26 -0500, Albert Chin wrote:
> 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.
> 

No, it is not a gcc extension, but AFAIK it is C99. Anyway, thanks for
the hint, I have just commited a similar fix, which should be available
in tomorrow's snapshot.

-- 
Bazsi



More information about the syslog-ng mailing list