Zero-length arrays are *not* valid in C89, even if GCC doesn't happen to

have a problem with them; MSVC++, for example, doesn't handle them, so
we comment them out.

svn path=/trunk/; revision=10463
This commit is contained in:
Guy Harris 2004-03-23 18:36:05 +00:00
parent b7ef0e5bed
commit 61b717f53c
12 changed files with 68 additions and 40 deletions

View File

@ -2,7 +2,7 @@
* Routines for AIM (OSCAR) dissection, SNAC Advertisements
* Copyright 2004, Jelmer Vernooij <jelmer@samba.org>
*
* $Id: packet-aim-adverts.c,v 1.1 2004/03/23 06:21:16 guy Exp $
* $Id: packet-aim-adverts.c,v 1.2 2004/03/23 18:36:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -88,8 +88,9 @@ proto_register_aim_adverts(void)
{
/* Setup list of header fields */
/*FIXME
static hf_register_info hf[] = {
};
};*/
/* Setup protocol subtree array */
static gint *ett[] = {
@ -100,7 +101,8 @@ proto_register_aim_adverts(void)
proto_aim_adverts = proto_register_protocol("AIM Advertisements", "AIM Advertisements", "aim_adverts");
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_aim_adverts, hf, array_length(hf));
/*FIXME
proto_register_field_array(proto_aim_adverts, hf, array_length(hf));*/
proto_register_subtree_array(ett, array_length(ett));
}

View File

@ -3,7 +3,7 @@
* Copyright 2004, Jelmer Vernooij <jelmer@samba.org>
* Copyright 2000, Ralf Hoelzer <ralf@well.com>
*
* $Id: packet-aim-chat.c,v 1.1 2004/03/23 06:21:16 guy Exp $
* $Id: packet-aim-chat.c,v 1.2 2004/03/23 18:36:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -129,8 +129,9 @@ proto_register_aim_chat(void)
{
/* Setup list of header fields */
/*FIXME
static hf_register_info hf[] = {
};
};*/
/* Setup protocol subtree array */
static gint *ett[] = {
@ -141,7 +142,8 @@ proto_register_aim_chat(void)
proto_aim_chat = proto_register_protocol("AIM Chat Service", "AIM Chat", "aim_chat");
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_aim_chat, hf, array_length(hf));
/*FIXME
proto_register_field_array(proto_aim_chat, hf, array_length(hf));*/
proto_register_subtree_array(ett, array_length(ett));
}

View File

@ -2,7 +2,7 @@
* Routines for AIM Instant Messenger (OSCAR) dissection
* Copyright 2004, Jelmer Vernooij <jelmer@samba.org>
*
* $Id: packet-aim-chatnav.c,v 1.1 2004/03/23 06:21:16 guy Exp $
* $Id: packet-aim-chatnav.c,v 1.2 2004/03/23 18:36:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -78,8 +78,9 @@ proto_register_aim_chatnav(void)
{
/* Setup list of header fields */
/*FIXME
static hf_register_info hf[] = {
};
};*/
/* Setup protocol subtree array */
static gint *ett[] = {
@ -89,7 +90,8 @@ proto_register_aim_chatnav(void)
proto_aim_chatnav = proto_register_protocol("AIM Chat Navigation", "AIM ChatNav", "aim_chatnav");
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_aim_chatnav, hf, array_length(hf));
/*FIXME
proto_register_field_array(proto_aim_chatnav, hf, array_length(hf));*/
proto_register_subtree_array(ett, array_length(ett));
}

View File

@ -2,7 +2,7 @@
* Routines for AIM Instant Messenger (OSCAR) dissection, SNAC Directory
* Copyright 2004, Jelmer Vernooij <jelmer@samba.org>
*
* $Id: packet-aim-directory.c,v 1.1 2004/03/23 06:21:16 guy Exp $
* $Id: packet-aim-directory.c,v 1.2 2004/03/23 18:36:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -64,18 +64,22 @@ proto_register_aim_directory(void)
{
/* Setup list of header fields */
/*FIXME
static hf_register_info hf[] = {
};
};*/
/* Setup protocol subtree array */
/*FIXME
static gint *ett[] = {
};
};*/
/* Register the protocol name and description */
proto_aim_directory = proto_register_protocol("AIM Directory Search", "AIM Directory", "aim_dir");
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_aim_directory, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
/*FIXME
proto_register_field_array(proto_aim_directory, hf, array_length(hf));*/
/*FIXME
proto_register_subtree_array(ett, array_length(ett));*/
}
void

View File

@ -2,7 +2,7 @@
* Routines for AIM Instant Messenger (OSCAR) dissection, SNAC ICQ
* Copyright 2004, Jelmer Vernooij <jelmer@samba.org>
*
* $Id: packet-aim-icq.c,v 1.1 2004/03/23 06:21:16 guy Exp $
* $Id: packet-aim-icq.c,v 1.2 2004/03/23 18:36:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -87,8 +87,9 @@ proto_register_aim_icq(void)
{
/* Setup list of header fields */
/*FIXME
static hf_register_info hf[] = {
};
};*/
/* Setup protocol subtree array */
static gint *ett[] = {
@ -99,7 +100,8 @@ proto_register_aim_icq(void)
proto_aim_icq = proto_register_protocol("AIM ICQ", "AIM ICQ", "aim_icq");
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_aim_icq, hf, array_length(hf));
/*FIXME
proto_register_field_array(proto_aim_icq, hf, array_length(hf));*/
proto_register_subtree_array(ett, array_length(ett));
}

View File

@ -2,7 +2,7 @@
* Routines for AIM Instant Messenger (OSCAR) dissection, SNAC Invitation
* Copyright 2004, Jelmer Vernooij <jelmer@samba.org>
*
* $Id: packet-aim-invitation.c,v 1.1 2004/03/23 06:21:16 guy Exp $
* $Id: packet-aim-invitation.c,v 1.2 2004/03/23 18:36:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -66,8 +66,9 @@ proto_register_aim_invitation(void)
{
/* Setup list of header fields */
/*FIXME
static hf_register_info hf[] = {
};
};*/
/* Setup protocol subtree array */
static gint *ett[] = {
@ -78,7 +79,8 @@ proto_register_aim_invitation(void)
proto_aim_invitation = proto_register_protocol("AIM Invitation Service", "AIM Invitation", "aim_invitation");
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_aim_invitation, hf, array_length(hf));
/*FIXME
proto_register_field_array(proto_aim_invitation, hf, array_length(hf));*/
proto_register_subtree_array(ett, array_length(ett));
}

View File

@ -3,7 +3,7 @@
* Copyright 2004, Jelmer Vernooij <jelmer@samba.org>
* Copyright 2000, Ralf Hoelzer <ralf@well.com>
*
* $Id: packet-aim-messaging.c,v 1.1 2004/03/23 06:21:16 guy Exp $
* $Id: packet-aim-messaging.c,v 1.2 2004/03/23 18:36:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -162,8 +162,9 @@ proto_register_aim_messaging(void)
{
/* Setup list of header fields */
/*FIXME
static hf_register_info hf[] = {
};
};*/
/* Setup protocol subtree array */
static gint *ett[] = {
@ -174,7 +175,8 @@ proto_register_aim_messaging(void)
proto_aim_messaging = proto_register_protocol("AIM Messaging", "AIM Messaging", "aim_messaging");
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_aim_messaging, hf, array_length(hf));
/*FIXME
proto_register_field_array(proto_aim_messaging, hf, array_length(hf));*/
proto_register_subtree_array(ett, array_length(ett));
}

View File

@ -2,7 +2,7 @@
* Routines for AIM Instant Messenger (OSCAR) dissection
* Copyright 2004, Jelmer Vernooij <jelmer@samba.org>
*
* $Id: packet-aim-oft.c,v 1.1 2004/03/23 06:21:16 guy Exp $
* $Id: packet-aim-oft.c,v 1.2 2004/03/23 18:36:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -51,19 +51,23 @@ proto_register_aim_oft(void)
{
/* Setup list of header fields */
/*FIXME
static hf_register_info hf[] = {
};
};*/
/* Setup protocol subtree array */
/*FIXME
static gint *ett[] = {
};
};*/
/* Register the protocol name and description */
proto_aim_oft = proto_register_protocol("AIM OFT", "AIM OFT", "aim_oft");
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_aim_oft, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
/*FIXME
proto_register_field_array(proto_aim_oft, hf, array_length(hf));*/
/*FIXME
proto_register_subtree_array(ett, array_length(ett));*/
}
void

View File

@ -2,7 +2,7 @@
* Routines for AIM Instant Messenger (OSCAR) dissection
* Copyright 2004, Jelmer Vernooij <jelmer@samba.org>
*
* $Id: packet-aim-popup.c,v 1.1 2004/03/23 06:21:17 guy Exp $
* $Id: packet-aim-popup.c,v 1.2 2004/03/23 18:36:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -66,8 +66,9 @@ proto_register_aim_popup(void)
{
/* Setup list of header fields */
/*FIXME
static hf_register_info hf[] = {
};
};*/
/* Setup protocol subtree array */
static gint *ett[] = {
@ -78,7 +79,8 @@ proto_register_aim_popup(void)
proto_aim_popup = proto_register_protocol("AIM Popup", "AIM Popup", "aim_popup");
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_aim_popup, hf, array_length(hf));
/*FIXME
proto_register_field_array(proto_aim_popup, hf, array_length(hf));*/
proto_register_subtree_array(ett, array_length(ett));
}

View File

@ -2,7 +2,7 @@
* Routines for AIM Instant Messenger (OSCAR) dissection, SNAC Stats
* Copyright 2004, Jelmer Vernooij <jelmer@samba.org>
*
* $Id: packet-aim-stats.c,v 1.1 2004/03/23 06:21:17 guy Exp $
* $Id: packet-aim-stats.c,v 1.2 2004/03/23 18:36:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -69,8 +69,9 @@ proto_register_aim_stats(void)
{
/* Setup list of header fields */
/*FIXME
static hf_register_info hf[] = {
};
};*/
/* Setup protocol subtree array */
static gint *ett[] = {
@ -81,7 +82,8 @@ proto_register_aim_stats(void)
proto_aim_stats = proto_register_protocol("AIM Statistics", "AIM Stats", "aim_stats");
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_aim_stats, hf, array_length(hf));
/*FIXME
proto_register_field_array(proto_aim_stats, hf, array_length(hf));*/
proto_register_subtree_array(ett, array_length(ett));
}

View File

@ -2,7 +2,7 @@
* Routines for AIM Instant Messenger (OSCAR) dissection, SNAC Translate
* Copyright 2004, Jelmer Vernooij <jelmer@samba.org>
*
* $Id: packet-aim-translate.c,v 1.1 2004/03/23 06:21:17 guy Exp $
* $Id: packet-aim-translate.c,v 1.2 2004/03/23 18:36:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -66,8 +66,9 @@ proto_register_aim_translate(void)
{
/* Setup list of header fields */
/*FIXME
static hf_register_info hf[] = {
};
};*/
/* Setup protocol subtree array */
static gint *ett[] = {
@ -77,7 +78,8 @@ proto_register_aim_translate(void)
proto_aim_translate = proto_register_protocol("AIM Translate", "AIM Translate", "aim_translate");
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_aim_translate, hf, array_length(hf));
/*FIXME
proto_register_field_array(proto_aim_translate, hf, array_length(hf));*/
proto_register_subtree_array(ett, array_length(ett));
}

View File

@ -2,7 +2,7 @@
* Routines for AIM Instant Messenger (OSCAR) dissection, SNAC Userlookup
* Copyright 2004, Jelmer Vernooij <jelmer@samba.org>
*
* $Id: packet-aim-userlookup.c,v 1.1 2004/03/23 06:21:17 guy Exp $
* $Id: packet-aim-userlookup.c,v 1.2 2004/03/23 18:36:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -85,8 +85,9 @@ proto_register_aim_userlookup(void)
{
/* Setup list of header fields */
/*FIXME
static hf_register_info hf[] = {
};
};*/
/* Setup protocol subtree array */
static gint *ett[] = {
@ -96,7 +97,8 @@ proto_register_aim_userlookup(void)
proto_aim_userlookup = proto_register_protocol("AIM User Lookup", "AIM User Lookup", "aim_lookup");
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_aim_userlookup, hf, array_length(hf));
/*FIXME
proto_register_field_array(proto_aim_userlookup, hf, array_length(hf));*/
proto_register_subtree_array(ett, array_length(ett));
}