I guess Solaris's getopt_long() "struct option" declaration doesn't have

enough cowbell^wconst; throw in a comment to squelch warnings.

svn path=/trunk/; revision=51351
This commit is contained in:
Guy Harris 2013-08-14 01:21:13 +00:00
parent ab3aeb63e4
commit da7c920853
2 changed files with 2 additions and 2 deletions

View File

@ -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 }
};

View File

@ -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;