From 4f0f17b764f749f0b51b68bdc3b5168f355faffe Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 15 Jun 2011 19:34:54 +0000 Subject: [PATCH] Strings are not writable, and the compiler warns that assigning a pointer to a string to a non-const pointer discards qualifiers; make the err_info member of the wtap_reader structure a const pointer. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37671 f5534014-38df-0310-8fa8-9805f1628bb7 --- wiretap/file_wrappers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiretap/file_wrappers.c b/wiretap/file_wrappers.c index 030f352518..f8b9b8c8eb 100644 --- a/wiretap/file_wrappers.c +++ b/wiretap/file_wrappers.c @@ -95,7 +95,7 @@ struct wtap_reader { int seek; /* true if seek request pending */ /* error information */ int err; /* error code */ - char *err_info; /* additional error information string for some errors */ + const char *err_info; /* additional error information string for some errors */ unsigned int avail_in; /* number of bytes available at next_in */ unsigned char *next_in; /* next input byte */ -- 2.34.1