summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2019-04-07 17:15:36 +0200
committerDavid Seifert <soap@gentoo.org>2019-04-07 17:15:36 +0200
commitd7566969c2009d876eefd9016514650faada3521 (patch)
tree7a66258d76ac868d756dad2cc427db16c3481b8b
parentFix `make distcheck` (diff)
downloadufed-d7566969c2009d876eefd9016514650faada3521.tar.gz
ufed-d7566969c2009d876eefd9016514650faada3521.tar.bz2
ufed-d7566969c2009d876eefd9016514650faada3521.zip
Rename `getline` to `ufed_getline` to avoid clashufed-0.94
* `getline` is defined by POSIX.1-2008 http://man7.org/linux/man-pages/man3/getline.3.html Bug: https://bugs.gentoo.org/644518 Signed-off-by: David Seifert <soap@gentoo.org>
-rw-r--r--ufed-curses-checklist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ufed-curses-checklist.c b/ufed-curses-checklist.c
index d457c1c..3f81c9f 100644
--- a/ufed-curses-checklist.c
+++ b/ufed-curses-checklist.c
@@ -27,7 +27,7 @@ static void setFlagWrapDraw(sFlag* flag, int index, sWrap** wrap, size_t* pos, s
/* static functions */
-static char *getline(FILE *fp)
+static char *ufed_getline(FILE *fp)
{
static size_t size = LINE_MAX;
@@ -101,7 +101,7 @@ static void read_flags(void)
ERROR_EXIT(-1, "fdopen failed with error %d\n", errno);
atexit(&free_flags);
- for(line = getline(input); line ; line = getline(input)) {
+ for(line = ufed_getline(input); line ; line = ufed_getline(input)) {
name.start = name.end = -1;
state.start = state.end = -1;
@@ -135,7 +135,7 @@ static void read_flags(void)
pkg.start = pkg.end = -1;
state.start = state.end = -1;
- line = getline(input);
+ line = ufed_getline(input);
if (!line) break;
if ( (sscanf(line, "\t%n%*[^\t]%n\t%n%*[^\t]%n\t (%n%*[^)]%n) [%n%*[ +-]%n%c",