Squelch more const warnings (and fix some memory leaks that found).
[obnox/wireshark/wip.git] / tap-protocolinfo.c
index 562bfc23f276f5beedf328e16afa86830a1d5b63..8c66866b52aa857ab69e3f35f048a8cd630b165b 100644 (file)
@@ -87,11 +87,11 @@ protocolinfo_packet(void *prs, packet_info *pinfo, epan_dissect_t *edt, const vo
 
 
 static void
-protocolinfo_init(char *optarg)
+protocolinfo_init(const char *optarg)
 {
        pci_t *rs;
-       char *field=NULL;
-       char *filter=NULL;
+       const char *field=NULL;
+       const char *filter=NULL;
        header_field_info *hfi;
        GString *error_string;