mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
init_string__: Let the file parameter point to const.
This commit is contained in:
parent
0ba497b0d4
commit
f47bdd76d6
@ -245,7 +245,7 @@ elinks_strlcasecmp(const unsigned char *s1, size_t n1,
|
|||||||
|
|
||||||
inline struct string *
|
inline struct string *
|
||||||
#ifdef DEBUG_MEMLEAK
|
#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
|
#else
|
||||||
init_string(struct string *string)
|
init_string(struct string *string)
|
||||||
#endif
|
#endif
|
||||||
|
@ -150,7 +150,7 @@ struct string {
|
|||||||
|
|
||||||
/* Initializes the passed string struct by preallocating the @source member. */
|
/* Initializes the passed string struct by preallocating the @source member. */
|
||||||
#ifdef DEBUG_MEMLEAK
|
#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)
|
#define init_string(string) init_string__(__FILE__, __LINE__, string)
|
||||||
#else
|
#else
|
||||||
struct string *init_string(struct string *string);
|
struct string *init_string(struct string *string);
|
||||||
|
Loading…
Reference in New Issue
Block a user