From d7566969c2009d876eefd9016514650faada3521 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sun, 7 Apr 2019 17:15:36 +0200 Subject: Rename `getline` to `ufed_getline` to avoid clash * `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 --- ufed-curses-checklist.c | 6 +++--- 1 file 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", -- cgit v1.2.3-65-gdbad