mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +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
|
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;
|
estr_t state = ESTR_SUCCESS;
|
||||||
gchar *tmp_buff = NULL;
|
gchar *tmp_buff = NULL;
|
||||||
@ -234,19 +234,19 @@ _str_convert (GIConv coder, char *string, int size, GString * buffer)
|
|||||||
}
|
}
|
||||||
|
|
||||||
estr_t
|
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);
|
return _str_convert (coder, string, -1, buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
estr_t
|
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);
|
return _str_convert (coder, string, size, buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
estr_t
|
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;
|
estr_t result;
|
||||||
|
|
||||||
|
@ -159,16 +159,16 @@ void str_close_conv (GIConv);
|
|||||||
* return 0 if there was no problem.
|
* return 0 if there was no problem.
|
||||||
* otherwise return ESTR_PROBLEM or ESTR_FAILURE
|
* 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
|
/* return only 0 or ESTR_FAILURE, because vfs must be able to convert result to
|
||||||
* original string. (so no replace with questionmark)
|
* original string. (so no replace with questionmark)
|
||||||
* if coder is str_cnv_from_term or str_cnv_not_convert, string is only copied,
|
* 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
|
* 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,
|
/* if coder is str_cnv_to_term or str_cnv_not_convert, string is only copied,
|
||||||
* does replace with questionmark
|
* does replace with questionmark
|
||||||
|
Loading…
Reference in New Issue
Block a user