aboutsummaryrefslogtreecommitdiffstats
path: root/capture_info.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-12-16 22:40:45 -0800
committerGuy Harris <guy@alum.mit.edu>2014-12-17 06:41:45 +0000
commitdbdcae80ba93961f66274f37178d745557786525 (patch)
treee69243804282a6a2b448c2b49dbc0f05b499927c /capture_info.c
parent40f69b2778cb6a9add18cfeacbca430284b1cd66 (diff)
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 <guy@alum.mit.edu>
Diffstat (limited to 'capture_info.c')
-rw-r--r--capture_info.c2
1 files changed, 1 insertions, 1 deletions
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 {