mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
cleanup: build warnings: 'char *' -> 'const char *'
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
This commit is contained in:
parent
dc8150a521
commit
b88147f0c6
@ -98,7 +98,7 @@ str_close_conv (GIConv conv)
|
||||
}
|
||||
|
||||
static estr_t
|
||||
_str_convert (GIConv coder, char *string, int size, GString * buffer)
|
||||
_str_convert (GIConv coder, const char *string, int size, GString * buffer)
|
||||
{
|
||||
estr_t state = ESTR_SUCCESS;
|
||||
gchar *tmp_buff = NULL;
|
||||
@ -234,19 +234,19 @@ _str_convert (GIConv coder, char *string, int size, GString * buffer)
|
||||
}
|
||||
|
||||
estr_t
|
||||
str_convert (GIConv coder, char *string, GString * buffer)
|
||||
str_convert (GIConv coder, const char *string, GString * buffer)
|
||||
{
|
||||
return _str_convert (coder, string, -1, buffer);
|
||||
}
|
||||
|
||||
estr_t
|
||||
str_nconvert (GIConv coder, char *string, int size, GString * buffer)
|
||||
str_nconvert (GIConv coder, const char *string, int size, GString * buffer)
|
||||
{
|
||||
return _str_convert (coder, string, size, buffer);
|
||||
}
|
||||
|
||||
estr_t
|
||||
str_vfs_convert_from (GIConv coder, char *string, GString * buffer)
|
||||
str_vfs_convert_from (GIConv coder, const char *string, GString * buffer)
|
||||
{
|
||||
estr_t result;
|
||||
|
||||
|
@ -159,16 +159,16 @@ void str_close_conv (GIConv);
|
||||
* return 0 if there was no problem.
|
||||
* otherwise return ESTR_PROBLEM or ESTR_FAILURE
|
||||
*/
|
||||
estr_t str_convert (GIConv, char *, GString *);
|
||||
estr_t str_convert (GIConv, const char *, GString *);
|
||||
|
||||
estr_t str_nconvert (GIConv, char *, int, GString *);
|
||||
estr_t str_nconvert (GIConv, const char *, int, GString *);
|
||||
|
||||
/* return only 0 or ESTR_FAILURE, because vfs must be able to convert result to
|
||||
* original string. (so no replace with questionmark)
|
||||
* if coder is str_cnv_from_term or str_cnv_not_convert, string is only copied,
|
||||
* so is possible to show file, that is not valid in terminal encoding
|
||||
*/
|
||||
estr_t str_vfs_convert_from (GIConv, char *, GString *);
|
||||
estr_t str_vfs_convert_from (GIConv, const char *, GString *);
|
||||
|
||||
/* if coder is str_cnv_to_term or str_cnv_not_convert, string is only copied,
|
||||
* does replace with questionmark
|
||||
|
Loading…
Reference in New Issue
Block a user