use getopt_long() in tshark

svn path=/trunk/; revision=51087
This commit is contained in:
Martin Kaiser 2013-08-01 20:45:59 +00:00
parent 0cbe856098
commit 7cdd97b089
1 changed files with 5 additions and 1 deletions

View File

@ -37,6 +37,10 @@
#include <unistd.h>
#endif
#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
#include <errno.h>
#ifdef HAVE_FCNTL_H
@ -1200,7 +1204,7 @@ main(int argc, char *argv[])
output_fields = output_fields_new();
/* Now get our args */
while ((opt = getopt(argc, argv, optstring)) != -1) {
while ((opt = getopt_long(argc, argv, optstring, NULL, NULL)) != -1) {
switch (opt) {
case '2': /* Perform two pass analysis */
perform_two_pass_analysis = TRUE;