aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nbns.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-04-23 10:59:26 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-04-23 10:59:26 +0000
commit1cb2713ca4f49017083a4854068a7bd5027d37cc (patch)
treef690697725617a640820ade652da4cf766bdc863 /epan/dissectors/packet-nbns.c
parentedb41d122c7688f977051b18a144a7cc6ffd1b93 (diff)
Add some GCC warnings to the standard set, and add some others to the
--enable-extra-gcc-checks set. If we turn on -pedantic, try turning on -Wno-long-long as well, so that it's not *so* pedantic that it rejects the 64-bit integral data types that we explicitly require. Constify a bunch of stuff, and make some other changes, to get rid of warnings. Clean up some indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21526 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-nbns.c')
-rw-r--r--epan/dissectors/packet-nbns.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-nbns.c b/epan/dissectors/packet-nbns.c
index 32ee7e72a8..3af5691d22 100644
--- a/epan/dissectors/packet-nbns.c
+++ b/epan/dissectors/packet-nbns.c
@@ -275,9 +275,10 @@ get_nbns_name(tvbuff_t *tvb, int offset, int nbns_data_offset,
char *name_ret, int name_ret_len, int *name_type_ret)
{
int name_len;
- char *name;
+ const char *name;
char *nbname;
- char *pname, cname, cnbname;
+ const char *pname;
+ char cname, cnbname;
int name_type;
char *pname_ret;
size_t index = 0;