I guess Solaris's getopt_long() "struct option" declaration doesn't have
[metze/wireshark/wip.git] / tshark.c
index f996929a246c7ebbb56e9509dd802790058e3c64..d256e65cd82744f85ee7bf9aa8cad385002bd69d 100644 (file)
--- a/tshark.c
+++ b/tshark.c
@@ -877,7 +877,7 @@ main(int argc, char *argv[])
   char                *init_progfile_dir_error;
   int                  opt;
   struct option     long_options[] = {
-    {"capture-comment", required_argument, NULL, LONGOPT_NUM_CAP_COMMENT },
+    {(char *)"capture-comment", required_argument, NULL, LONGOPT_NUM_CAP_COMMENT },
     {0, 0, 0, 0 }
   };
   gboolean             arg_error = FALSE;