Squelch more const warnings (and fix some memory leaks that found).
[obnox/wireshark/wip.git] / gtk / hostlist_ip.c
index 57f456cd6ca1cc97c6d4ac814a28c84b55a64da4..9ed2cf71909692748200c09953bbf89469920b69 100644 (file)
@@ -57,9 +57,9 @@ ip_hostlist_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, const
 }
 
 static void
-gtk_ip_hostlist_init(char *optarg)
+gtk_ip_hostlist_init(const char *optarg)
 {
-       char *filter=NULL;
+       const char *filter=NULL;
 
        if(!strncmp(optarg,"hosts,ip,",9)){
                filter=optarg+9;