1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

add_file_to_string: Let filename point to const.

This commit is contained in:
Kalle Olavi Niemitalo 2007-01-28 01:50:06 +02:00 committed by Kalle Olavi Niemitalo
parent f47bdd76d6
commit 66614acbc0
2 changed files with 2 additions and 2 deletions

View File

@ -332,7 +332,7 @@ add_string_to_string(struct string *string, const struct string *from)
}
struct string *
add_file_to_string(struct string *string, unsigned char *filename)
add_file_to_string(struct string *string, const unsigned char *filename)
{
FILE *file;
off_t filelen;

View File

@ -164,7 +164,7 @@ 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, const struct string *from);
struct string *add_file_to_string(struct string *string, unsigned char *filename);
struct string *add_file_to_string(struct string *string, const unsigned char *filename);
struct string *add_crlf_to_string(struct string *string);
/* Adds each C string to @string until a terminating NULL is met. */