From: Ray Strode Date: Thu, 6 Aug 2009 02:14:35 +0000 (-0400) Subject: [command-parser] Add int cast to printf to %*s arg X-Git-Tag: 0.7.0~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=283215be39aa8d592f49ac9c80aa8b2f403107af;p=thirdparty%2Fplymouth.git [command-parser] Add int cast to printf to %*s arg This fixes a compiler warning. --- diff --git a/src/libply/ply-command-parser.c b/src/libply/ply-command-parser.c index 5e9ced36..a75f2cc8 100644 --- a/src/libply/ply-command-parser.c +++ b/src/libply/ply-command-parser.c @@ -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);