hush: style cleanups. no code changes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
diff --git a/shell/hush.c b/shell/hush.c
index 5419624..54aee88 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -1792,7 +1792,7 @@
 		G.PS2 = "> ";
 }
 
-static const char* setup_prompt_string(int promptmode)
+static const char *setup_prompt_string(int promptmode)
 {
 	const char *prompt_str;
 	debug_printf("setup_prompt_string %d ", promptmode);
@@ -2183,7 +2183,7 @@
 				n, string_len, string_start);
 		o->has_empty_slot = 0;
 	}
-	list[n] = (char*)(ptrdiff_t)string_len;
+	list[n] = (char*)(uintptr_t)string_len;
 	return n + 1;
 }
 
@@ -2193,7 +2193,7 @@
 	char **list = (char**)o->data;
 	int string_start = ((n + 0xf) & ~0xf) * sizeof(list[0]);
 
-	return ((int)(ptrdiff_t)list[n-1]) + string_start;
+	return ((int)(uintptr_t)list[n-1]) + string_start;
 }
 
 #ifdef HUSH_BRACE_EXP
@@ -2231,9 +2231,9 @@
 			cp++;
 			continue;
 		}
-		 /*{*/ if ((*cp == '}' && depth-- == 0) || (*cp == ',' && depth == 0))
+		if ((*cp == '}' && depth-- == 0) || (*cp == ',' && depth == 0))
 			break;
-		if (*cp++ == '{') /*}*/
+		if (*cp++ == '{')
 			depth++;
 	}
 
@@ -2255,7 +2255,7 @@
 	while (1) {
 		if (*begin == '\0')
 			goto simple_glob;
-		if (*begin == '{') /*}*/ {
+		if (*begin == '{') {
 			/* Find the first sub-pattern and at the same time
 			 * find the rest after the closing brace */
 			next = next_brace_sub(begin);
@@ -2263,7 +2263,7 @@
 				/* An illegal expression */
 				goto simple_glob;
 			}
-			/*{*/ if (*next == '}') {
+			if (*next == '}') {
 				/* "{abc}" with no commas - illegal
 				 * brace expr, disregard and skip it */
 				begin = next + 1;
@@ -2280,7 +2280,7 @@
 
 	/* Now find the end of the whole brace expression */
 	rest = next;
-	/*{*/ while (*rest != '}') {
+	while (*rest != '}') {
 		rest = next_brace_sub(rest);
 		if (rest == NULL) {
 			/* An illegal expression */
@@ -2316,7 +2316,7 @@
 		 * That's why we re-copy prefix every time (1st memcpy above).
 		 */
 		n = glob_brace(new_pattern_buf, o, n);
-		/*{*/ if (*next == '}') {
+		if (*next == '}') {
 			/* We saw the last entry */
 			break;
 		}
@@ -4990,7 +4990,6 @@
 {
 	int n;
 	char **list;
-	char **v;
 	o_string output = NULL_O_STRING;
 
 	/* protect against globbing for "$var"? */
@@ -4999,10 +4998,9 @@
 	output.o_glob = 1 & (or_mask / EXPVAR_FLAG_GLOB);
 
 	n = 0;
-	v = argv;
-	while (*v) {
-		n = expand_vars_to_list(&output, n, *v, (unsigned char)or_mask);
-		v++;
+	while (*argv) {
+		n = expand_vars_to_list(&output, n, *argv, (unsigned char)or_mask);
+		argv++;
 	}
 	debug_print_list("expand_variables", &output, n);
 
@@ -5672,7 +5670,7 @@
 	return ret;
 }
 
-static const struct built_in_command* find_builtin_helper(const char *name,
+static const struct built_in_command *find_builtin_helper(const char *name,
 		const struct built_in_command *x,
 		const struct built_in_command *end)
 {
@@ -5686,11 +5684,11 @@
 	}
 	return NULL;
 }
-static const struct built_in_command* find_builtin1(const char *name)
+static const struct built_in_command *find_builtin1(const char *name)
 {
 	return find_builtin_helper(name, bltins1, &bltins1[ARRAY_SIZE(bltins1)]);
 }
-static const struct built_in_command* find_builtin(const char *name)
+static const struct built_in_command *find_builtin(const char *name)
 {
 	const struct built_in_command *x = find_builtin1(name);
 	if (x)
@@ -6360,7 +6358,7 @@
 }
 
 #if ENABLE_HUSH_JOB
-static int checkjobs_and_fg_shell(struct pipe* fg_pipe)
+static int checkjobs_and_fg_shell(struct pipe *fg_pipe)
 {
 	pid_t p;
 	int rcode = checkjobs(fg_pipe);