search for: 8daa032

Displaying 1 result from an estimated 1 matches for "8daa032".

Did you mean: 8d01032
2009 Nov 09
1
use STREQ(a,b), not strcmp(a,b) == 0
...csumtype, "sha512") == 0) + else if (STRCASEEQ (csumtype, "sha512")) program = "sha512sum"; else { reply_with_error ("unknown checksum type, expecting crc|md5|sha1|sha224|sha256|sha384|sha512"); diff --git a/daemon/debug.c b/daemon/debug.c index 8daa032..04c52f0 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -80,7 +80,7 @@ do_debug (const char *subcmd MAYBE_UNUSED, char *const *argv MAYBE_UNUSED) argc++; for (i = 0; cmds[i].cmd != NULL; ++i) { - if (strcasecmp (subcmd, cmds[i].cmd) == 0) + if (STRCASEEQ (subcmd, cmds[i].cmd))...