]> Zhao Yanbai Git Server - minix.git/commitdiff
Compiler warning
authorBen Gras <ben@minix3.org>
Fri, 24 Mar 2006 23:05:54 +0000 (23:05 +0000)
committerBen Gras <ben@minix3.org>
Fri, 24 Mar 2006 23:05:54 +0000 (23:05 +0000)
drivers/cmos/cmos.c

index fb951c43685b1f37d7df6caa5d07b273b884e66e..f7d1ec9e81b197f01b798a0c930ff8ccf1595305 100644 (file)
@@ -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;