Line
Link Here
|
0 |
-- a/ufed-curses-checklist.c |
0 |
++ b/ufed-curses-checklist.c |
Lines 27-33
Link Here
|
27 |
|
27 |
|
28 |
|
28 |
|
29 |
/* static functions */ |
29 |
/* static functions */ |
30 |
static char *getline(FILE *fp) |
30 |
static char *get_line(FILE *fp) |
31 |
{ |
31 |
{ |
32 |
static size_t size = LINE_MAX; |
32 |
static size_t size = LINE_MAX; |
33 |
|
33 |
|
Lines 101-107
Link Here
|
101 |
ERROR_EXIT(-1, "fdopen failed with error %d\n", errno); |
101 |
ERROR_EXIT(-1, "fdopen failed with error %d\n", errno); |
102 |
atexit(&free_flags); |
102 |
atexit(&free_flags); |
103 |
|
103 |
|
104 |
for(line = getline(input); line ; line = getline(input)) { |
104 |
for(line = get_line(input); line ; line = get_line(input)) { |
105 |
name.start = name.end = -1; |
105 |
name.start = name.end = -1; |
106 |
state.start = state.end = -1; |
106 |
state.start = state.end = -1; |
107 |
|
107 |
|
Lines 135-141
Link Here
|
135 |
pkg.start = pkg.end = -1; |
135 |
pkg.start = pkg.end = -1; |
136 |
state.start = state.end = -1; |
136 |
state.start = state.end = -1; |
137 |
|
137 |
|
138 |
line = getline(input); |
138 |
line = get_line(input); |
139 |
if (!line) break; |
139 |
if (!line) break; |
140 |
|
140 |
|
141 |
if ( (sscanf(line, "\t%n%*[^\t]%n\t%n%*[^\t]%n\t (%n%*[^)]%n) [%n%*[ +-]%n%c", |
141 |
if ( (sscanf(line, "\t%n%*[^\t]%n\t%n%*[^\t]%n\t (%n%*[^)]%n) [%n%*[ +-]%n%c", |