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);