diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-06-15 19:34:54 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-06-15 19:34:54 +0000 |
commit | 128216dfbebcb0a0317628071badb1d859b342fe (patch) | |
tree | 1c0e62941f107238e0c1228ed862bda620ce2eb3 /wiretap/file_wrappers.c | |
parent | cdd23c3bd0b43e025a891addb0ec76c528d9d208 (diff) |
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.
svn path=/trunk/; revision=37671
Diffstat (limited to 'wiretap/file_wrappers.c')
-rw-r--r-- | wiretap/file_wrappers.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |