1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

add_string_to_string: Make the "from" string const.

This commit is contained in:
Kalle Olavi Niemitalo 2007-01-25 00:33:17 +02:00 committed by Kalle Olavi Niemitalo
parent 61520b9040
commit 649f470fe5
2 changed files with 2 additions and 2 deletions

View File

@ -318,7 +318,7 @@ add_crlf_to_string(struct string *string)
}
inline struct string *
add_string_to_string(struct string *string, struct string *from)
add_string_to_string(struct string *string, const struct string *from)
{
assertm(string && from, "[add_string_to_string]");
if_assert_failed { return NULL; }

View File

@ -160,7 +160,7 @@ void done_string(struct string *string);
struct string *add_to_string(struct string *string,
const unsigned char *source);
struct string *add_char_to_string(struct string *string, unsigned char character);
struct string *add_string_to_string(struct string *to, struct string *from);
struct string *add_string_to_string(struct string *to, const struct string *from);
struct string *add_file_to_string(struct string *string, unsigned char *filename);
struct string *add_crlf_to_string(struct string *string);