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:
parent
f47bdd76d6
commit
66614acbc0
@ -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;
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user