summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-12-10 17:18:45 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2015-12-10 17:18:45 +0100
commita6b3434895a3f95a089b500070a6dbdaa22a7155 (patch)
tree0fd3f3fdd7c9895eec7619d7d7baeb283c21fcba
parent6b6e018595d005cc39a31251831db804fd974d9a (diff)
downloadxe-a6b3434895a3f95a089b500070a6dbdaa22a7155.tar.gz
xe-a6b3434895a3f95a089b500070a6dbdaa22a7155.tar.xz
xe-a6b3434895a3f95a089b500070a6dbdaa22a7155.zip
consistent naming
-rw-r--r--xe.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/xe.c b/xe.c
index af6495a..05eed2a 100644
--- a/xe.c
+++ b/xe.c
@@ -43,8 +43,8 @@ static char **args;
 static size_t argslen;
 static size_t argscap;
 
-static char *getarg_line = 0;
-static size_t getarg_len = 0;
+static char *line = 0;
+static size_t linelen = 0;
 
 static char *
 getarg()
@@ -56,17 +56,17 @@ getarg()
 			return 0;
 	}
 
-	int read = getdelim(&getarg_line, &getarg_len, delim, stdin);
+	int read = getdelim(&line, &linelen, delim, stdin);
 	if (read == -1) {
 		if (feof(stdin))
 			return 0;
 		else
 			exit(1);
 	}
-	if (getarg_line[read-1] == delim)  // strip delimiter
-		getarg_line[read-1] = 0;
+	if (line[read-1] == delim)  // strip delimiter
+		line[read-1] = 0;
 
-	return getarg_line;
+	return line;
 }
 
 static int
@@ -351,7 +351,7 @@ keeparg:
 
 	free(buf);
 	free(args);
-	free(getarg_line);
+	free(line);
 
 	if (Rflag && iterations == 0)
 		return 122;