Squelch more const warnings (and fix some memory leaks that found).
[obnox/wireshark/wip.git] / tap-bootpstat.c
index 8063aa39f1d316ffa1d9c3f3ba908ea3efa32e07..a7b08ec0c2f26e4e78d1e43a37e56e50a3b9fdc2 100644 (file)
@@ -136,10 +136,10 @@ dhcpstat_draw(void *psp)
 /* When called, this function will create a new instance of tap-boopstat.
  */
 static void
 /* When called, this function will create a new instance of tap-boopstat.
  */
 static void
-dhcpstat_init(char *optarg)
+dhcpstat_init(const char *optarg)
 {
        dhcpstat_t *sp;
 {
        dhcpstat_t *sp;
-       char            *filter=NULL;
+       const char      *filter=NULL;
        GString         *error_string;
        
        if (!strncmp (optarg, "bootp,stat,", 11)){
        GString         *error_string;
        
        if (!strncmp (optarg, "bootp,stat,", 11)){