Again, the err_info returned from wtap_read() and wtap_seek_read() is a

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
This commit is contained in:
Guy Harris 2008-05-30 04:03:32 +00:00
parent be161ba460
commit ffcb641149
2 changed files with 3 additions and 3 deletions

2
file.c
View File

@ -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];

4
file.h
View File

@ -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.