diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-01-18 09:55:10 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-01-18 09:55:10 +0000 |
commit | 8c14ddcd0f42fa7a1f0a3e2c39b83f86394b53b2 (patch) | |
tree | b2c9b34395d68e2dd3384b1b81ef205dbb9c3352 /packet-ypxfr.c | |
parent | f3470d634106430a128b541944d0dbd288e7e768 (diff) |
Fix comments to reflect what a null function pointer in a "vsff" table
really means.
Make the "XXX_proc" arrays static.
svn path=/trunk/; revision=2920
Diffstat (limited to 'packet-ypxfr.c')
-rw-r--r-- | packet-ypxfr.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packet-ypxfr.c b/packet-ypxfr.c index 5ca5a7c714..13f7f01ba8 100644 --- a/packet-ypxfr.c +++ b/packet-ypxfr.c @@ -1,7 +1,7 @@ /* packet-ypxfr.c * Routines for ypxfr dissection * - * $Id: packet-ypxfr.c,v 1.5 2001/01/03 06:55:34 guy Exp $ + * $Id: packet-ypxfr.c,v 1.6 2001/01/18 09:55:10 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -42,11 +42,11 @@ static int proto_ypxfr = -1; static gint ett_ypxfr = -1; /* proc number, "proc name", dissect_request, dissect_reply */ -/* NULL as function pointer means: take the generic one. */ -const vsff ypxfr1_proc[] = { - { YPXFRPROC_NULL, "NULL", NULL, NULL }, - { YPXFRPROC_GETMAP, "GETMAP", NULL, NULL }, - { 0, NULL, NULL, NULL } +/* NULL as function pointer means: type of arguments is "void". */ +static const vsff ypxfr1_proc[] = { + { YPXFRPROC_NULL, "NULL", NULL, NULL }, + { YPXFRPROC_GETMAP, "GETMAP", NULL, NULL }, + { 0, NULL, NULL, NULL } }; /* end of YPXFR version 1 */ |