1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

init_string__: Let the file parameter point to const.

This commit is contained in:
Kalle Olavi Niemitalo 2007-01-28 01:46:30 +02:00 committed by Kalle Olavi Niemitalo
parent 0ba497b0d4
commit f47bdd76d6
2 changed files with 2 additions and 2 deletions

View File

@ -245,7 +245,7 @@ elinks_strlcasecmp(const unsigned char *s1, size_t n1,
inline struct string *
#ifdef DEBUG_MEMLEAK
init_string__(unsigned char *file, int line, struct string *string)
init_string__(const unsigned char *file, int line, struct string *string)
#else
init_string(struct string *string)
#endif

View File

@ -150,7 +150,7 @@ struct string {
/* Initializes the passed string struct by preallocating the @source member. */
#ifdef DEBUG_MEMLEAK
struct string *init_string__(unsigned char *file, int line, struct string *string);
struct string *init_string__(const unsigned char *file, int line, struct string *string);
#define init_string(string) init_string__(__FILE__, __LINE__, string)
#else
struct string *init_string(struct string *string);