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 --- frame_tvbuff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frame_tvbuff.c') diff --git a/frame_tvbuff.c b/frame_tvbuff.c index 2e3019c7e3..c8d2f83a68 100644 --- a/frame_tvbuff.c +++ b/frame_tvbuff.c @@ -59,7 +59,7 @@ frame_read(struct tvb_frame *frame_tvb, struct wtap_pkthdr *phdr, Buffer *buf) */ if (!wtap_seek_read(frame_tvb->wth, frame_tvb->file_off, phdr, buf, &err, &err_info)) { switch (err) { - case WTAP_ERR_UNSUPPORTED_ENCAP: + case WTAP_ERR_UNWRITABLE_ENCAP: case WTAP_ERR_BAD_FILE: g_free(err_info); break; -- cgit v1.2.1