From e2ff9d98dfe3049786b9f25bcb4610a27ef1aa93 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 20 Dec 2010 19:42:20 +0100 Subject: [PATCH] log.c: small fixes. --- src/log.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/log.c b/src/log.c index 7873c95..f1452a2 100644 --- a/src/log.c +++ b/src/log.c @@ -71,7 +71,7 @@ static void writeinfo(unsigned level) { fputs(buf, logfd); } -static int validmask(unsigned x, char unique) { +static int validmask(unsigned x, unsigned unique) { /* check if only one bit is set */ if (unique && (x & (x - 1)) != 0) @@ -138,7 +138,6 @@ unsigned logstrtolvl(const char *str) { void logmsg(unsigned level, const char *fmt, ...) { va_list vl; - FILE *fd; if (!validmask(level, 1)) die("log: invalid level: %x\n", level);