From: Wouter Wijngaards Date: Fri, 23 Feb 2007 13:59:45 +0000 (+0000) Subject: Fixup. X-Git-Tag: release-0.1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a92f1cf9ac0d56be7a1f6be30aa26cb8f4b28bb3;p=thirdparty%2Funbound.git Fixup. git-svn-id: file:///svn/unbound/trunk@140 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/daemon/unbound.c b/daemon/unbound.c index a8769ae6b..965ca137f 100644 --- a/daemon/unbound.c +++ b/daemon/unbound.c @@ -89,7 +89,7 @@ readpid (const char* file) pid_t pid; char pidbuf[32]; char* t; - int l; + ssize_t l; if ((fd = open(file, O_RDONLY)) == -1) { return -1; @@ -134,7 +134,10 @@ writepid (const char* pidfile, pid_t pid) fclose(f); } -/** check old pid file */ +/** + * check old pid file. + * @param cfg: the config settings + */ static void checkoldpid(struct config_file* cfg) { diff --git a/util/log.c b/util/log.c index 4ca4dac97..17350dea5 100644 --- a/util/log.c +++ b/util/log.c @@ -44,6 +44,7 @@ #endif enum verbosity_value verbosity = 0; +/** the file logged to. */ static FILE* logfile = 0; void