diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2004-04-25 12:04:08 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2004-04-25 12:04:08 +0000 |
commit | 895375603d9a14cafbd1ef70ea87a39d9e51d9f9 (patch) | |
tree | 42dde0714aef5ead2cf2385fb258bdf99c01f457 /file.c | |
parent | b03a9d08f3b7b319f4c27771582eee366e0626f8 (diff) |
put all required data into the print_args,
instead of confusing seperation of data
svn path=/trunk/; revision=10692
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -1,7 +1,7 @@ /* file.c * File I/O routines * - * $Id: file.c,v 1.378 2004/04/24 23:13:45 ulfl Exp $ + * $Id: file.c,v 1.379 2004/04/25 12:04:07 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1610,8 +1610,13 @@ print_packets(capture_file *cf, print_args_t *print_args) int line_len; psp_return_t ret; - callback_args.print_fh = open_print_dest(print_args->to_file, - print_args->dest); + if(print_args->to_file) { + callback_args.print_fh = open_print_dest(print_args->to_file, + print_args->file); + } else { + callback_args.print_fh = open_print_dest(print_args->to_file, + print_args->cmd); + } if (callback_args.print_fh == NULL) return PP_OPEN_ERROR; /* attempt to open destination failed */ |