diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-08-12 08:37:25 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-08-12 08:38:28 -0400 |
commit | a2c4d71c2e84419a49db503ed59de4d3d1dca7dd (patch) | |
tree | 68cf0d2c10eae032d52bad7e6489fe04e22d6952 /libmisc/next_line.c | |
parent | 809584283a3ce5b0250656faefb23a821782adbe (diff) | |
download | acl-a2c4d71c2e84419a49db503ed59de4d3d1dca7dd.tar.gz |
add __acl_ prefixes to internal symbols
When static linking libacl, people sometimes run into symbol collisions
because their own code defines symbols like "quote". So for acl internal
symbols, use an __acl_ prefix.
Diffstat (limited to 'libmisc/next_line.c')
-rw-r--r-- | libmisc/next_line.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmisc/next_line.c b/libmisc/next_line.c index 0566d7a..126a364 100644 --- a/libmisc/next_line.c +++ b/libmisc/next_line.c @@ -23,7 +23,7 @@ #define LINE_SIZE getpagesize() -char *next_line(FILE *file) +char *__acl_next_line(FILE *file) { static char *line; static size_t line_size; @@ -31,7 +31,7 @@ char *next_line(FILE *file) int eol = 0; if (!line) { - if (high_water_alloc((void **)&line, &line_size, LINE_SIZE)) + if (__acl_high_water_alloc((void **)&line, &line_size, LINE_SIZE)) return NULL; } c = line; @@ -47,7 +47,7 @@ char *next_line(FILE *file) if (feof(file)) break; if (!eol) { - if (high_water_alloc((void **)&line, &line_size, + if (__acl_high_water_alloc((void **)&line, &line_size, 2 * line_size)) return NULL; c = strrchr(line, '\0'); |