dumpcap: remove legacy code.

Change-Id: Ifd25d8fb0a299378273ade94ac0f1fd1d313fd6e
Reviewed-on: https://code.wireshark.org/review/33149
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
Dario Lombardo 2019-05-10 18:52:44 +02:00 committed by Peter Wu
parent 25e19aefcf
commit 2ca8b14525
1 changed files with 10 additions and 16 deletions

View File

@ -3127,23 +3127,17 @@ capture_loop_init_output(capture_options *capture_opts, loop_data *ld, char *err
if (ld->pdh == NULL) {
/* We couldn't set up to write to the capture file. */
/* XXX - use cf_open_error_message from tshark instead? */
switch (err) {
default:
if (err < 0) {
g_snprintf(errmsg, errmsg_len,
"The file to which the capture would be"
" saved (\"%s\") could not be opened: Error %d.",
capture_opts->save_file, err);
} else {
g_snprintf(errmsg, errmsg_len,
"The file to which the capture would be"
" saved (\"%s\") could not be opened: %s.",
capture_opts->save_file, g_strerror(err));
}
break;
if (err < 0) {
g_snprintf(errmsg, errmsg_len,
"The file to which the capture would be"
" saved (\"%s\") could not be opened: Error %d.",
capture_opts->save_file, err);
} else {
g_snprintf(errmsg, errmsg_len,
"The file to which the capture would be"
" saved (\"%s\") could not be opened: %s.",
capture_opts->save_file, g_strerror(err));
}
return FALSE;
}