]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[command-parser] Add int cast to printf to %*s arg
authorRay Strode <rstrode@redhat.com>
Thu, 6 Aug 2009 02:14:35 +0000 (22:14 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 6 Aug 2009 02:14:35 +0000 (22:14 -0400)
This fixes a compiler warning.

src/libply/ply-command-parser.c

index 5e9ced367f0f5ae85ab00fe050dffdfac71bb621..a75f2cc82300d33b88351388f72019cae649f58a 100644 (file)
@@ -245,7 +245,7 @@ ply_command_parser_get_help_string (ply_command_parser_t *parser)
 
       ply_buffer_append (buffer, "  %s%*s %s\n",
                          command->name,
-                         longest_subcommand + 2 - strlen (command->name),
+                         (int) (longest_subcommand + 2 - strlen (command->name)),
                          "",
                          command->description);