commit:     d7566969c2009d876eefd9016514650faada3521
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  7 15:15:36 2019 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Apr  7 15:15:36 2019 +0000
URL:        https://gitweb.gentoo.org/proj/ufed.git/commit/?id=d7566969

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 <soap <AT> gentoo.org>

 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",

Reply via email to