Ethereal-dev: [ethereal-dev] Problem with packet-stat.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Craig Rodrigues <rodrigc@xxxxxxxxxxxx>
Date: Thu, 18 Nov 1999 12:03:56 -0500
Hi,

In packet-stat.c, insde proto_register_stat, around line 68-74:

        static hf_register_info hf[] = {
#if 0
                { &hf_stat_path, {
                        "Path", "stat.path", FT_STRING, BASE_DEC,
                        NULL, 0, "Path" }},
#endif
        };


What is going on here?
The IBM C compiler apparently doesn't allow you to compile
an array initializer with 0 elements, ie. char foo[] = {}; is 
a no-no.
This causes compilation errors for me.

Thanks.
-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@xxxxxxxxxxxx