1 Thomas Lercher citylife@24h.de
2 http://bugs.gentoo.org/show_bug.cgi?id=270486
4 --- setfx.c 2007-08-29 18:00:23.000000000 +0200
5 +++ setfx.c 2009-05-19 22:19:56.140092119 +0200
7 /*----------------------------------------------------------------*/
9 static void usage(void);
10 -static int getline(FILE *fp);
11 +static int awesfx_getline(FILE *fp);
12 static int nextline(FILE *fp);
13 static char *gettok(FILE *fp);
14 static char *divtok(char *src, char *divs, int only_one);
20 + if (!awesfx_getline(fp))
23 seq_init(seq_devname, seq_devidx);
25 * read a line and parse tokens
26 *----------------------------------------------------------------*/
28 -static int getline(FILE *fp)
29 +static int awesfx_getline(FILE *fp)
38 + if (! awesfx_getline(fp))
44 + return awesfx_getline(fp);
49 tok = divtok(NULL, " \t\r\n", FALSE);
50 while (tok == NULL || *tok == 0) {
51 if (! connected) return NULL;
52 - if (! getline(fp)) return NULL;
53 + if (! awesfx_getline(fp)) return NULL;
54 tok = divtok(line, " \t\r\n", FALSE);