From 185986c07e9086ed5e62b23419b39d293fdfb83f Mon Sep 17 00:00:00 2001 From: jmayer Date: Wed, 20 Jul 2005 11:01:35 +0000 Subject: [PATCH] Change proto_register_protocol to use 'const char*' instead of 'char*' git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14966 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/proto.c | 2 +- epan/proto.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/epan/proto.c b/epan/proto.c index 04281e9dff..93418d2d54 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -2614,7 +2614,7 @@ proto_tree_move_item(proto_tree *tree, proto_item *fixed_item, proto_item *item_ int -proto_register_protocol(char *name, char *short_name, char *filter_name) +proto_register_protocol(const char *name, const char *short_name, const char *filter_name) { protocol_t *protocol; header_field_info *hfinfo; diff --git a/epan/proto.h b/epan/proto.h index c1d1380fb5..8a7cf9ed7f 100644 --- a/epan/proto.h +++ b/epan/proto.h @@ -973,7 +973,7 @@ proto_item_fill_label(field_info *fi, gchar *label_str); @param filter_name protocol name used for a display filter string @return the new protocol handle */ extern int -proto_register_protocol(char *name, char *short_name, char *filter_name); +proto_register_protocol(const char *name, const char *short_name, const char *filter_name); /** Register a header_field array. @param parent the protocol handle from proto_register_protocol() -- 2.34.1