From: Andreas Jaeger Date: Wed, 9 Jul 2003 05:13:09 +0000 (+0200) Subject: opts.c (wrap_help): Only pass int arguments as arguments to printf's '*' modifier. X-Git-Tag: releases/gcc-3.4.0~5019 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fbdb0453f10c7c46d776e765c5974453b39da70f;p=thirdparty%2Fgcc.git opts.c (wrap_help): Only pass int arguments as arguments to printf's '*' modifier. * opts.c (wrap_help): Only pass int arguments as arguments to printf's '*' modifier. Change argument of function. From-SVN: r69124 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 28fd092b9119..7942537c7ffc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-07-09 Andreas Jaeger + + * opts.c (wrap_help): Only pass int arguments as arguments to + printf's '*' modifier. Change argument of function. + 2003-07-08 Matt Kraai * doc/invoke.texi: Fix misspelling of "@item". diff --git a/gcc/opts.c b/gcc/opts.c index 052703fd94e0..f9951a6a3cc5 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -137,7 +137,7 @@ static char *write_langs (unsigned int lang_mask); static void complain_wrong_lang (const char *, const struct cl_option *, unsigned int lang_mask); static void handle_options (unsigned int, const char **, unsigned int); -static void wrap_help (const char *help, const char *item, size_t item_width); +static void wrap_help (const char *help, const char *item, int item_width); static void print_help (void); /* Perform a binary search to find which option the command-line INPUT @@ -1524,9 +1524,9 @@ print_help (void) /* Output ITEM, of length ITEM_WIDTH, in the left column, followed by word-wrapped HELP in a second column. */ static void -wrap_help (const char *help, const char *item, size_t item_width) +wrap_help (const char *help, const char *item, int item_width) { - const unsigned int columns = 80, col_width = 27; + const int columns = 80, col_width = 27; unsigned int remaining, room, len; remaining = strlen (help);