From ddcc2aee3d28510ee4f5c4b8dac1e2fc68f1e8e7 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 17 Dec 2014 00:29:31 -0800 Subject: Rename WTAP_ERR_UNSUPPORTED_FILE_TYPE to WTAP_ERR_UNWRITABLE_FILE_TYPE. 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: I22d407efe3ae9fba7aa25f08f050317549866442 Reviewed-on: https://code.wireshark.org/review/5798 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 ff04e2d417..805b49f71e 100644 --- a/capture_info.c +++ b/capture_info.c @@ -138,7 +138,7 @@ cf_open_error_message(int err, gchar *err_info, gboolean for_writing, errmsg = errmsg_errno; break; - case WTAP_ERR_UNSUPPORTED_FILE_TYPE: + case WTAP_ERR_UNWRITABLE_FILE_TYPE: /* Seen only when opening a capture file for writing. */ errmsg = "TShark doesn't support writing capture files in that format."; break; -- cgit v1.2.1