64 bit fixes.
authorRichard Jones <rjones@trick.home.annexia.org>
Mon, 10 Aug 2009 16:26:57 +0000 (17:26 +0100)
committerRichard Jones <rjones@trick.home.annexia.org>
Mon, 10 Aug 2009 16:26:57 +0000 (17:26 +0100)
hostinfod/commands.c

index cb66179..d2a1d2d 100644 (file)
@@ -88,7 +88,7 @@ execute_command (const struct timespec *now,
    */
   len = strlen (command);
   if (len < 1 || len > 4094 || not_printable (command)) {
-    warning ("%s: command too short, too long or contained unprintable chars (len = %d)",
+    warning ("%s: command too short, too long or contained unprintable chars (len = %zu)",
             hval->name, len);
     send_error (hval, 400);
     return;
@@ -173,7 +173,7 @@ execute_command (const struct timespec *now,
 
     default:
     unknown_arg:
-      warning ("%s: unknown or malformed argument starting at position %d ('%c')",
+      warning ("%s: unknown or malformed argument starting at position %zu ('%c')",
               hval->name, i, command[i]);
       send_error (hval, 400);
       return;
@@ -191,11 +191,11 @@ execute_command (const struct timespec *now,
       switch (arg.type) {
       case arg_type_bool:
       case arg_type_int:
-       debug ("%s: arg %d : %s = %ld",
+       debug ("%s: arg %zu : %s = %ld",
               hval->name, i, string_of_arg_type (arg.type), arg.u.i);
        break;
       case arg_type_string:
-       debug ("%s: arg %d : %s = %s",
+       debug ("%s: arg %zu : %s = %s",
               hval->name, i, string_of_arg_type (arg.type), arg.u.str);
        break;
       }