Code

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 a89765a73447443c2124804aac2d0373eb48a083..cbe6e80ab541f6f0b0a003f74d93d7bccfa8a90f 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;
                        }