From: Ben Gras Date: Fri, 24 Mar 2006 23:05:54 +0000 (+0000) Subject: Compiler warning X-Git-Tag: v3.1.2a~144 X-Git-Url: http://zhaoyanbai.com/repos/icons/debian/static/howto.html?a=commitdiff_plain;h=df947669b36d78cb0047fe5c10e5138abf24aea1;p=minix.git Compiler warning --- diff --git a/drivers/cmos/cmos.c b/drivers/cmos/cmos.c index fb951c436..f7d1ec9e8 100644 --- a/drivers/cmos/cmos.c +++ b/drivers/cmos/cmos.c @@ -247,7 +247,7 @@ PRIVATE int get_cmostime(struct tm *t, int y2kflag) PRIVATE int read_register(int reg_addr) { /* Read a single CMOS register value. */ - int r = 0; + unsigned long r; sys_outb(RTC_INDEX, reg_addr); sys_inb(RTC_IO, &r); return r;