Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 7fe97203b25a0dd1a3c3342cdbf1eaac > files > 5

awesfx-0.5.1c-3.fc12.src.rpm

diff -uNr awesfx-0.5.1c/setfx.c awesfx-0.5.1c-p/setfx.c
--- awesfx-0.5.1c/setfx.c	2007-08-29 18:00:23.000000000 +0200
+++ awesfx-0.5.1c-p/setfx.c	2009-03-13 02:36:01.000000000 +0100
@@ -37,7 +37,7 @@
 /*----------------------------------------------------------------*/
 
 static void usage(void);
-static int getline(FILE *fp);
+static int parseline(FILE *fp);
 static int nextline(FILE *fp);
 static char *gettok(FILE *fp);
 static char *divtok(char *src, char *divs, int only_one);
@@ -126,7 +126,7 @@
 	}
 
 	curline = 0;
-	if (!getline(fp))
+	if (!parseline(fp))
 		return 0;
 
 	seq_init(seq_devname, seq_devidx);
@@ -370,7 +370,7 @@
  * read a line and parse tokens
  *----------------------------------------------------------------*/
 
-static int getline(FILE *fp)
+static int parseline(FILE *fp)
 {
 	char *p;
 	curline++;
@@ -393,12 +393,12 @@
 {
 	if (connected) {
 		do {
-			if (! getline(fp))
+			if (! parseline(fp))
 				return FALSE;
 		} while (connected);
 		return TRUE;
 	} else {
-		return getline(fp);
+		return parseline(fp);
 	}
 }
 
@@ -415,7 +415,7 @@
 	tok = divtok(NULL, " \t\r\n", FALSE);
 	while (tok == NULL || *tok == 0) {
 		if (! connected) return NULL;
-		if (! getline(fp)) return NULL;
+		if (! parseline(fp)) return NULL;
 		tok = divtok(line, " \t\r\n", FALSE);
 	}
 	return tok;