Fix this:
authorocto <octo>
Fri, 21 Apr 2006 07:35:19 +0000 (07:35 +0000)
committerocto <octo>
Fri, 21 Apr 2006 07:35:19 +0000 (07:35 +0000)
  hddtemp.c: In function `hddtemp_init':
  hddtemp.c:349: warning: unsigned int format, different type arg (arg 3)

src/hddtemp.c

index a89765a..cbe6e80 100644 (file)
@@ -346,7 +346,8 @@ static void hddtemp_init (void)
 
                        if ((entry = (hddname_t *) malloc (sizeof (hddname_t))) == NULL)
                        {
-                               syslog (LOG_ERR, "hddtemp: malloc (%u) == NULL", sizeof (hddname_t));
+                               syslog (LOG_ERR, "hddtemp: malloc (%u) == NULL",
+                                               (unsigned int) sizeof (hddname_t));
                                free (name);
                                continue;
                        }