diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-01-18 09:55:10 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-01-18 09:55:10 +0000 |
commit | 813e00d6a53f2c2ac8e1189ff732cab62ce6a098 (patch) | |
tree | b2c9b34395d68e2dd3384b1b81ef205dbb9c3352 /packet-nfs.c | |
parent | bd19f14df588ce8277d03685fe113ba3258d5d9c (diff) |
Fix comments to reflect what a null function pointer in a "vsff" table
really means.
Make the "XXX_proc" arrays static.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2920 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-nfs.c')
-rw-r--r-- | packet-nfs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packet-nfs.c b/packet-nfs.c index 27c925e7bd..5c3f183035 100644 --- a/packet-nfs.c +++ b/packet-nfs.c @@ -3,7 +3,7 @@ * Copyright 1999, Uwe Girlich <Uwe.Girlich@philosys.de> * Copyright 2000, Mike Frisch <frisch@hummingbird.com> (NFSv4 decoding) * - * $Id: packet-nfs.c,v 1.41 2001/01/03 16:41:06 gram Exp $ + * $Id: packet-nfs.c,v 1.42 2001/01/18 09:55:09 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -1386,8 +1386,8 @@ dissect_nfs2_statfs_reply(const u_char* pd, int offset, frame_data* fd, proto_tr /* proc number, "proc name", dissect_request, dissect_reply */ -/* NULL as function pointer means: take the generic one. */ -const vsff nfs2_proc[] = { +/* NULL as function pointer means: type of arguments is "void". */ +static const vsff nfs2_proc[] = { { 0, "NULL", /* OK */ NULL, NULL }, { 1, "GETATTR", /* OK */ @@ -4924,8 +4924,8 @@ dissect_nfs4_compound_reply(const u_char* pd, int offset, frame_data* fd, /* proc number, "proc name", dissect_request, dissect_reply */ -/* NULL as function pointer means: take the generic one. */ -const vsff nfs3_proc[] = { +/* NULL as function pointer means: type of arguments is "void". */ +static const vsff nfs3_proc[] = { { 0, "NULL", /* OK */ NULL, NULL }, { 1, "GETATTR", /* OK */ @@ -4974,7 +4974,7 @@ const vsff nfs3_proc[] = { }; /* end of NFS Version 3 */ -const vsff nfs4_proc[] = { +static const vsff nfs4_proc[] = { { 0, "NULL", NULL, NULL }, { 1, "COMPOUND", |