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 --- capture_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'capture_info.c') diff --git a/capture_info.c b/capture_info.c index be60360368..ff04e2d417 100644 --- a/capture_info.c +++ b/capture_info.c @@ -143,7 +143,7 @@ cf_open_error_message(int err, gchar *err_info, gboolean for_writing, errmsg = "TShark doesn't support writing capture files in that format."; break; - case WTAP_ERR_UNSUPPORTED_ENCAP: + case WTAP_ERR_UNWRITABLE_ENCAP: if (for_writing) errmsg = "TShark can't save this capture in that format."; else { -- cgit v1.2.1