mergecap: remove a now useless variable
authorPascal Quantin <pascal.quantin@gmail.com>
Thu, 20 Apr 2017 21:45:19 +0000 (23:45 +0200)
committerPascal Quantin <pascal.quantin@gmail.com>
Thu, 20 Apr 2017 21:48:09 +0000 (21:48 +0000)
Change-Id: I9acbbc03cbc2719abbe5b3ade62fc1c4e92cb8ff
Reviewed-on: https://code.wireshark.org/review/21262
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
mergecap.c

index 74f733fa1bde589ab82819535f1d78f6fc8b0e62..cac00af45e15f8f83e3982ef88a99f77067bbd9f 100644 (file)
@@ -268,7 +268,6 @@ main(int argc, char *argv[])
   char               *out_filename       = NULL;
   merge_result        status             = MERGE_OK;
   idb_merge_mode      mode               = IDB_MERGE_MODE_MAX;
-  gboolean            use_stdout         = FALSE;
   merge_progress_callback_t cb;
 
   cmdarg_err_init(mergecap_cmdarg_err, mergecap_cmdarg_err_cont);
@@ -439,7 +438,6 @@ main(int argc, char *argv[])
   /* open the outfile */
   if (strcmp(out_filename, "-") == 0) {
     /* merge the files to the standard output */
-    use_stdout = TRUE;
     status = merge_files_to_stdout(file_type,
                                    (const char *const *) &argv[optind],
                                    in_file_count, do_append, mode, snaplen,