From dbdcae80ba93961f66274f37178d745557786525 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 16 Dec 2014 22:40:45 -0800 Subject: 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 --- capinfos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'capinfos.c') diff --git a/capinfos.c b/capinfos.c index dda4b57a07..01b1122c09 100644 --- a/capinfos.c +++ b/capinfos.c @@ -905,7 +905,7 @@ process_cap_file(wtap *wth, const char *filename) break; case WTAP_ERR_UNSUPPORTED: - case WTAP_ERR_UNSUPPORTED_ENCAP: + case WTAP_ERR_UNWRITABLE_ENCAP: case WTAP_ERR_BAD_FILE: case WTAP_ERR_DECOMPRESS: fprintf(stderr, "(%s)\n", err_info); @@ -1485,7 +1485,7 @@ main(int argc, char *argv[]) switch (err) { case WTAP_ERR_UNSUPPORTED: - case WTAP_ERR_UNSUPPORTED_ENCAP: + case WTAP_ERR_UNWRITABLE_ENCAP: case WTAP_ERR_BAD_FILE: case WTAP_ERR_DECOMPRESS: fprintf(stderr, "(%s)\n", err_info); -- cgit v1.2.3