Change proto_register_protocol to use 'const char*' instead of 'char*'
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 20 Jul 2005 11:01:35 +0000 (11:01 +0000)
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 20 Jul 2005 11:01:35 +0000 (11:01 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14966 f5534014-38df-0310-8fa8-9805f1628bb7

epan/proto.c
epan/proto.h

index 04281e9dffa7c09f3a80a737ba9fa30709d1ca96..93418d2d5473db8f20a54b1fc078decfd5150a17 100644 (file)
@@ -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;
index c1d1380fb5134c2390f33200ae71d07d54790a05..8a7cf9ed7f06e54c173dfe644205ac38d8fa0418 100644 (file)
@@ -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()