summaryrefslogtreecommitdiff
blob: 6b9036d6f343f94807098b138c59b2dadf433253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- libparserutils-0.1.1/test/inputstream.c
+++ libparserutils-0.1.1/test/inputstream.c
@@ -25,7 +25,7 @@
 {
 	parserutils_inputstream *stream;
 	FILE *fp;
-	size_t len, origlen;
+	size_t len;
 #define CHUNK_SIZE (4096)
 	uint8_t buf[CHUNK_SIZE];
 	const uint8_t *c;
@@ -46,7 +46,7 @@
 	}
 
 	fseek(fp, 0, SEEK_END);
-	origlen = len = ftell(fp);
+	len = ftell(fp);
 	fseek(fp, 0, SEEK_SET);
 
 	while (len >= CHUNK_SIZE) {