diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-12-16 22:40:45 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-12-17 06:41:45 +0000 |
commit | dbdcae80ba93961f66274f37178d745557786525 (patch) | |
tree | e69243804282a6a2b448c2b49dbc0f05b499927c /wiretap/k12text.l | |
parent | 40f69b2778cb6a9add18cfeacbca430284b1cd66 (diff) | |
download | wireshark-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 'wiretap/k12text.l')
-rw-r--r-- | wiretap/k12text.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/k12text.l b/wiretap/k12text.l index 9aed765f8d..f203fa7edb 100644 --- a/wiretap/k12text.l +++ b/wiretap/k12text.l @@ -399,7 +399,7 @@ k12text_dump(wtap_dumper *wdh _U_, const struct wtap_pkthdr *phdr, /* * That encapsulation type is not supported. Fail. */ - *err = WTAP_ERR_UNSUPPORTED_ENCAP; + *err = WTAP_ERR_UNWRITABLE_ENCAP; return FALSE; } @@ -458,7 +458,7 @@ k12text_dump_can_write_encap(int encap) case WTAP_ENCAP_MTP2: case WTAP_ENCAP_ATM_PDUS: default: - return WTAP_ERR_UNSUPPORTED_ENCAP; + return WTAP_ERR_UNWRITABLE_ENCAP; } } |