1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[util] const in add_shell_quoted_to_string

This commit is contained in:
Witold Filipczyk 2022-02-21 18:46:35 +01:00
parent 1672e75bd2
commit d1a01f19db
2 changed files with 4 additions and 4 deletions

View File

@ -356,7 +356,7 @@ add_quoted_to_string(struct string *string, const char *src, int len)
}
struct string *
add_shell_quoted_to_string(struct string *string, char *src, int len)
add_shell_quoted_to_string(struct string *string, const char *src, int len)
{
add_char_to_string(string, '\'');
for (; len; len--, ++src)
@ -370,7 +370,7 @@ add_shell_quoted_to_string(struct string *string, char *src, int len)
}
struct string *
add_shell_safe_to_string(struct string *string, char *cmd, int cmdlen)
add_shell_safe_to_string(struct string *string, const char *cmd, int cmdlen)
{
int prev_safe = 0;

View File

@ -112,11 +112,11 @@ struct string *add_quoted_to_string(struct string *string, const char *q, int ql
* and ' to @a string.
* @relates string */
struct string *add_shell_quoted_to_string(struct string *string,
char *src, int len);
const char *src, int len);
/* Escapes non shell safe chars with '_'.
* @relates string */
struct string *add_shell_safe_to_string(struct string *string, char *cmd, int cmdlen);
struct string *add_shell_safe_to_string(struct string *string, const char *cmd, int cmdlen);
/** @} */