summaryrefslogtreecommitdiff
path: root/text2pcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'text2pcap.c')
-rw-r--r--text2pcap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/text2pcap.c b/text2pcap.c
index ccc2a187b9..3f002fd86c 100644
--- a/text2pcap.c
+++ b/text2pcap.c
@@ -1531,13 +1531,11 @@ parse_options (int argc, char *argv[])
GString *runtime_info_str;
int c;
char *p;
-DIAG_OFF(cast-qual)
static const struct option long_options[] = {
- {(char *)"help", no_argument, NULL, 'h'},
- {(char *)"version", no_argument, NULL, 'v'},
+ {"help", no_argument, NULL, 'h'},
+ {"version", no_argument, NULL, 'v'},
{0, 0, 0, 0 }
};
-DIAG_ON(cast-qual)
#ifdef _WIN32
arg_list_utf_16to8(argc, argv);