Again, the err_info returned from wtap_read() and wtap_seek_read() is a
authorGuy Harris <guy@alum.mit.edu>
Fri, 30 May 2008 04:03:32 +0000 (04:03 -0000)
committerGuy Harris <guy@alum.mit.edu>
Fri, 30 May 2008 04:03:32 +0000 (04:03 -0000)
g_mallocated string, so it's not const.

Fix a comment to reflect reality (err_info is some additional
information about the error returned by Wiretap, e.g. some gory details
about the error, mainly useful to developers and support people).

svn path=/trunk/; revision=25401

file.c
file.h

diff --git a/file.c b/file.c
index ed9c458e0613e0084d6e03011f134e0a2868319b..38e5eda0a0c327e839e58d999d55cc1dcc7e4acc 100644 (file)
--- a/file.c
+++ b/file.c
@@ -3787,7 +3787,7 @@ file_rename_error_message(int err)
 }
 
 char *
-cf_read_error_message(int err, const gchar *err_info)
+cf_read_error_message(int err, gchar *err_info)
 {
   static char errmsg_errno[1024+1];
 
diff --git a/file.h b/file.h
index 89e5b89ce433970f6b1e46aa043293c1216d68d8..1979b3875a63d2606392787f8f3deefa4e67dc1f 100644 (file)
--- a/file.h
+++ b/file.h
@@ -461,10 +461,10 @@ void cf_unmark_frame(capture_file *cf, frame_data *frame);
  * Convert error number and info to a complete message.
  *
  * @param err the error number
- * @param err_info the additional info about this error (e.g. filename)
+ * @param err_info a string with additional details about this error
  * @return statically allocated error message
  */
-char *cf_read_error_message(int err, const gchar *err_info);
+char *cf_read_error_message(int err, gchar *err_info);
 
 /**
  * Merge two (or more) capture files into one.