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 --- wiretap/nettl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wiretap/nettl.c') diff --git a/wiretap/nettl.c b/wiretap/nettl.c index f859c2e265..88d42e6e8f 100644 --- a/wiretap/nettl.c +++ b/wiretap/nettl.c @@ -646,7 +646,7 @@ int nettl_dump_can_write_encap(int encap) case WTAP_ENCAP_NETTL_UNKNOWN: return 0; default: - return WTAP_ERR_UNSUPPORTED_ENCAP; + return WTAP_ERR_UNWRITABLE_ENCAP; } } @@ -764,7 +764,7 @@ static gboolean nettl_dump(wtap_dumper *wdh, #endif default: /* found one we don't support */ - *err = WTAP_ERR_UNSUPPORTED_ENCAP; + *err = WTAP_ERR_UNWRITABLE_ENCAP; return FALSE; } -- cgit v1.2.1