diff options
author | Paul Smith <psmith@gnu.org> | 2013-07-21 17:52:13 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-07-21 17:52:13 -0400 |
commit | 87ac68fe79a2e3b0d149135d40d8cbc5500024af (patch) | |
tree | 78ca3b513d6d7e662117fc824c40f2db2b521b85 /misc.c | |
parent | 72462ef1e181fc99837ba3077f9b5d192f16f6aa (diff) | |
download | gunmake-87ac68fe79a2e3b0d149135d40d8cbc5500024af.tar.gz |
[Bug #39158] Source cleanups suggested by cppcheck utility.
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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) |