From 87ac68fe79a2e3b0d149135d40d8cbc5500024af Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 21 Jul 2013 17:52:13 -0400 Subject: [Bug #39158] Source cleanups suggested by cppcheck utility. --- misc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'misc.c') diff --git a/misc.c b/misc.c index d3a1da5..8ae67b9 100644 --- a/misc.c +++ b/misc.c @@ -50,9 +50,7 @@ alpha_compare (const void *v1, const void *v2) void collapse_continuations (char *line) { - register char *in, *out, *p; - register int backslash; - register unsigned int bs_write; + char *in, *out, *p; in = strchr (line, '\n'); if (in == 0) @@ -67,8 +65,8 @@ collapse_continuations (char *line) /* BS_WRITE gets the number of quoted backslashes at the end just before IN, and BACKSLASH gets nonzero if the next character is quoted. */ - backslash = 0; - bs_write = 0; + unsigned int backslash = 0; + unsigned int bs_write = 0; for (p = in - 1; p >= line && *p == '\\'; --p) { if (backslash) -- cgit v1.2.3