diff options
author | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-07-30 16:34:38 +0000 |
---|---|---|
committer | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-07-30 16:34:38 +0000 |
commit | b33c6b9563efdc7fcced921888244d30bd0fb509 (patch) | |
tree | 9dfa68d0b17ff7a5b589a851e264a77b99ab2852 /epan/dissectors/packet-nbns.c | |
parent | e08d23a43941e5346c0daa29b361761e33c9215b (diff) |
More char -> const char fixes
Declare some functions static
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15158 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-nbns.c')
-rw-r--r-- | epan/dissectors/packet-nbns.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-nbns.c b/epan/dissectors/packet-nbns.c index 109189f355..e7f2b826f1 100644 --- a/epan/dissectors/packet-nbns.c +++ b/epan/dissectors/packet-nbns.c @@ -230,7 +230,7 @@ static const value_string rcode_vals[] = { #define NAME_FLAGS_G (1<<(15-0)) /* group name */ -static char * +static const char * nbns_type_name (int type) { switch (type) { @@ -387,7 +387,7 @@ get_nbns_name_type_class(tvbuff_t *tvb, int offset, int nbns_data_offset, static void add_name_and_type(proto_tree *tree, tvbuff_t *tvb, int offset, int len, - char *tag, char *name, int name_type) + const char *tag, const char *name, int name_type) { if (name_type != -1) { proto_tree_add_text(tree, tvb, offset, len, "%s: %s (%s)", @@ -408,7 +408,7 @@ dissect_nbns_query(tvbuff_t *tvb, int offset, int nbns_data_offset, int name_type; int type; int class; - char *type_name; + const char *type_name; int data_offset; int data_start; proto_tree *q_tree; @@ -601,7 +601,7 @@ dissect_nbns_answer(tvbuff_t *tvb, int offset, int nbns_data_offset, int type; int class; const char *class_name; - char *type_name; + const char *type_name; int data_offset; int cur_offset; int data_start; @@ -987,7 +987,7 @@ dissect_query_records(tvbuff_t *tvb, int cur_off, int nbns_data_offset, static int dissect_answer_records(tvbuff_t *tvb, int cur_off, int nbns_data_offset, int count, column_info *cinfo, proto_tree *nbns_tree, int opcode, - char *name) + const char *name) { int start_off, add_off; proto_tree *qatree = NULL; |