Squelch more const warnings (and fix some memory leaks that found).
[obnox/wireshark/wip.git] / tap-protohierstat.c
index 8a26136d1c67077547cd20e2511e457c8f5b8554..ac3721a66d5857db1e2c5ac8ab52ea30f928fb90 100644 (file)
@@ -47,7 +47,7 @@ typedef struct _phs_t {
        struct _phs_t *parent;
        char *filter;
        int protocol;
-       char *proto_name;
+       const char *proto_name;
        guint32 frames;
        guint32 bytes;
 } phs_t;
@@ -166,11 +166,11 @@ protohierstat_draw(void *prs)
 
 
 static void
-protohierstat_init(char *optarg)
+protohierstat_init(const char *optarg)
 {
        phs_t *rs;
        int pos=0;
-       char *filter=NULL;
+       const char *filter=NULL;
        GString *error_string;
 
        if(!strcmp("io,phs",optarg)){