summaryrefslogtreecommitdiff
path: root/editcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-12-16 22:40:45 -0800
committerGuy Harris <guy@alum.mit.edu>2014-12-17 06:41:45 +0000
commitdbdcae80ba93961f66274f37178d745557786525 (patch)
treee69243804282a6a2b448c2b49dbc0f05b499927c /editcap.c
parent40f69b2778cb6a9add18cfeacbca430284b1cd66 (diff)
downloadwireshark-dbdcae80ba93961f66274f37178d745557786525.tar.gz
Rename WTAP_ERR_UNSUPPORTED_ENCAP to WTAP_ERR_UNWRITABLE_ENCAP.
That makes it clearer what the problem is, and that it should only be returned by the dump code path, not by the read code path. Change-Id: Icc5c9cff43be6c073f0467607555fa7138c5d074 Reviewed-on: https://code.wireshark.org/review/5797 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/editcap.c b/editcap.c
index 31a76f981e..d91c53af48 100644
--- a/editcap.c
+++ b/editcap.c
@@ -1251,7 +1251,7 @@ main(int argc, char *argv[])
wtap_strerror(err));
switch (err) {
case WTAP_ERR_UNSUPPORTED:
- case WTAP_ERR_UNSUPPORTED_ENCAP:
+ case WTAP_ERR_UNWRITABLE_ENCAP:
case WTAP_ERR_BAD_FILE:
fprintf(stderr, "(%s)\n", err_info);
g_free(err_info);
@@ -1640,7 +1640,7 @@ main(int argc, char *argv[])
if (!wtap_dump(pdh, phdr, buf, &err)) {
switch (err) {
- case WTAP_ERR_UNSUPPORTED_ENCAP:
+ case WTAP_ERR_UNWRITABLE_ENCAP:
/*
* This is a problem with the particular frame we're
* writing and the file type and subtype we're
@@ -1689,7 +1689,7 @@ main(int argc, char *argv[])
argv[optind], wtap_strerror(err));
switch (err) {
case WTAP_ERR_UNSUPPORTED:
- case WTAP_ERR_UNSUPPORTED_ENCAP:
+ case WTAP_ERR_UNWRITABLE_ENCAP:
case WTAP_ERR_BAD_FILE:
fprintf(stderr, "(%s)\n", err_info);
g_free(err_info);