I guess Solaris's getopt_long() "struct option" declaration doesn't have
authorGuy Harris <guy@alum.mit.edu>
Wed, 14 Aug 2013 01:21:13 +0000 (01:21 -0000)
committerGuy Harris <guy@alum.mit.edu>
Wed, 14 Aug 2013 01:21:13 +0000 (01:21 -0000)
enough cowbell^wconst; throw in a comment to squelch warnings.

svn path=/trunk/; revision=51351

dumpcap.c
tshark.c

index f68a1ef99998604582621e3da0688d505753008a..afed5d86901be017f5faae3b7b8f55f8ad9d66ec 100644 (file)
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -4131,7 +4131,7 @@ main(int argc, char *argv[])
     GString          *runtime_info_str;
     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 }
     };
 
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;