aboutsummaryrefslogtreecommitdiffstats
path: root/rawshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-12-17 16:41:21 -0800
committerGuy Harris <guy@alum.mit.edu>2014-12-18 00:41:43 +0000
commit6011a047d3cd2aba84e7fdd3bf7e8403a2f3563b (patch)
treee65e862bc54c08528399d081c5d4d2df128a2b5d /rawshark.c
parentaa27e665b1d469e54b8cbb9931d5324acdf4dc75 (diff)
WTAP_ERR_UNWRITABLE_ errors aren't returned by reads or open-for-reading.
Check for them *only* on opening for writing and writes. Change-Id: I4b537d511ec04bcfc81f69166a2b9a2ee9310067 Reviewed-on: https://code.wireshark.org/review/5827 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'rawshark.c')
-rw-r--r--rawshark.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/rawshark.c b/rawshark.c
index bcd9281082..0fc46c05c4 100644
--- a/rawshark.c
+++ b/rawshark.c
@@ -1012,12 +1012,6 @@ load_cap_file(capture_file *cf)
g_free(err_info);
break;
- case WTAP_ERR_UNWRITABLE_ENCAP:
- cmdarg_err("The file \"%s\" has a packet with a network type that Rawshark doesn't support.\n(%s)",
- cf->filename, err_info);
- g_free(err_info);
- break;
-
case WTAP_ERR_SHORT_READ:
cmdarg_err("The file \"%s\" appears to have been cut short in the middle of a packet.",
cf->filename);