Blame SOURCES/halog-unused-variables.patch

e14c8a
--- contrib/halog/halog.c.orig	2014-07-25 01:56:07.000000000 -0500
e14c8a
+++ contrib/halog/halog.c	2014-07-25 15:24:56.996876765 -0500
7991a0
@@ -462,7 +462,7 @@ int convert_date(const char *field)
7991a0
 {
7991a0
 	unsigned int h, m, s, ms;
7991a0
 	unsigned char c;
7991a0
-	const char *b, *e;
7991a0
+	const char *e;
7991a0
 
7991a0
 	h = m = s = ms = 0;
7991a0
 	e = field;
7991a0
@@ -477,7 +477,6 @@ int convert_date(const char *field)
7991a0
 	}
7991a0
 
7991a0
 	/* hour + ':' */
7991a0
-	b = e;
7991a0
 	while (1) {
7991a0
 		c = *(e++) - '0';
7991a0
 		if (c > 9)
7991a0
@@ -488,7 +487,6 @@ int convert_date(const char *field)
7991a0
 		goto out_err;
7991a0
 
7991a0
 	/* minute + ':' */
7991a0
-	b = e;
7991a0
 	while (1) {
7991a0
 		c = *(e++) - '0';
7991a0
 		if (c > 9)
7991a0
@@ -499,7 +497,6 @@ int convert_date(const char *field)
7991a0
 		goto out_err;
7991a0
 
7991a0
 	/* second + '.' or ']' */
7991a0
-	b = e;
7991a0
 	while (1) {
7991a0
 		c = *(e++) - '0';
7991a0
 		if (c > 9)
7991a0
@@ -512,7 +509,6 @@ int convert_date(const char *field)
7991a0
 	/* if there's a '.', we have milliseconds */
7991a0
 	if (c == (unsigned char)('.' - '0')) {
7991a0
 		/* millisecond second + ']' */
7991a0
-		b = e;
7991a0
 		while (1) {
7991a0
 			c = *(e++) - '0';
7991a0
 			if (c > 9)
7991a0
@@ -535,7 +531,7 @@ int convert_date_to_timestamp(const char
7991a0
 {
7991a0
 	unsigned int d, mo, y, h, m, s;
7991a0
 	unsigned char c;
7991a0
-	const char *b, *e;
7991a0
+	const char *e;
7991a0
 	time_t rawtime;
7991a0
 	static struct tm * timeinfo;
7991a0
 	static int last_res;
7991a0
@@ -622,7 +618,6 @@ int convert_date_to_timestamp(const char
7991a0
 	}
7991a0
 
7991a0
 	/* hour + ':' */
7991a0
-	b = e;
7991a0
 	while (1) {
7991a0
 		c = *(e++) - '0';
7991a0
 		if (c > 9)
7991a0
@@ -633,7 +628,6 @@ int convert_date_to_timestamp(const char
7991a0
 		goto out_err;
7991a0
 
7991a0
 	/* minute + ':' */
7991a0
-	b = e;
7991a0
 	while (1) {
7991a0
 		c = *(e++) - '0';
7991a0
 		if (c > 9)
7991a0
@@ -644,7 +638,6 @@ int convert_date_to_timestamp(const char
7991a0
 		goto out_err;
7991a0
 
7991a0
 	/* second + '.' or ']' */
7991a0
-	b = e;
7991a0
 	while (1) {
7991a0
 		c = *(e++) - '0';
7991a0
 		if (c > 9)
7991a0
@@ -686,10 +679,10 @@ void truncated_line(int linenum, const c
7991a0
 
7991a0
 int main(int argc, char **argv)
7991a0
 {
7991a0
-	const char *b, *e, *p, *time_field, *accept_field, *source_field;
7991a0
+	const char *b, *p, *time_field, *accept_field, *source_field;
7991a0
 	const char *filter_term_code_name = NULL;
7991a0
 	const char *output_file = NULL;
7991a0
-	int f, last, err;
7991a0
+	int f, last;
7991a0
 	struct timer *t = NULL;
7991a0
 	struct eb32_node *n;
7991a0
 	struct url_stat *ustat = NULL;
7991a0
@@ -941,7 +934,7 @@ int main(int argc, char **argv)
7991a0
 				}
7991a0
 			}
7991a0
 
7991a0
-			e = field_stop(time_field + 1);
7991a0
+			field_stop(time_field + 1);
7991a0
 			/* we have field TIME_FIELD in [time_field]..[e-1] */
7991a0
 			p = time_field;
7991a0
 			f = 0;
7991a0
@@ -965,17 +958,15 @@ int main(int argc, char **argv)
7991a0
 				}
7991a0
 			}
7991a0
 
7991a0
-			e = field_stop(time_field + 1);
7991a0
+			field_stop(time_field + 1);
7991a0
 			/* we have field TIME_FIELD in [time_field]..[e-1], let's check only the response time */
7991a0
 
7991a0
 			p = time_field;
7991a0
-			err = 0;
7991a0
 			f = 0;
7991a0
 			while (!SEP(*p)) {
7991a0
 				tps = str2ic(p);
7991a0
 				if (tps < 0) {
7991a0
 					tps = -1;
7991a0
-					err = 1;
7991a0
 				}
7991a0
 				if (++f == 4)
7991a0
 					break;
7991a0
@@ -1701,7 +1692,7 @@ void filter_count_ip(const char *source_
7991a0
 void filter_graphs(const char *accept_field, const char *time_field, struct timer **tptr)
7991a0
 {
7991a0
 	struct timer *t2;
7991a0
-	const char *e, *p;
7991a0
+	const char *p;
7991a0
 	int f, err, array[5];
7991a0
 
7991a0
 	if (!time_field) {
7991a0
@@ -1712,7 +1703,7 @@ void filter_graphs(const char *accept_fi
7991a0
 		}
7991a0
 	}
7991a0
 
7991a0
-	e = field_stop(time_field + 1);
7991a0
+	field_stop(time_field + 1);
7991a0
 	/* we have field TIME_FIELD in [time_field]..[e-1] */
7991a0
 
7991a0
 	p = time_field;