Squelch more const warnings (and fix some memory leaks that found).
[obnox/wireshark/wip.git] / gtk / hostlist_tcpip.c
index 72f28fc9ca265ecfc0a63d3b557253c90b97b70c..f84958db3ffc706f3357045528b7f74a344229d0 100644 (file)
@@ -58,9 +58,9 @@ tcpip_hostlist_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, co
 
 
 static void
-gtk_tcpip_hostlist_init(char *optarg)
+gtk_tcpip_hostlist_init(const char *optarg)
 {
-       char *filter=NULL;
+       const char *filter=NULL;
 
        if(!strncmp(optarg,"endpoints,tcp,",14)){
                filter=optarg+14;