summaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-09 05:13:09 +0000
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-09 05:13:09 +0000
commitfbd8e6fcc5a0d5b91b07a6d86ffdec02f251216e (patch)
treea1c12a52bf90d3fdba4af4023a753a7701bc3c70 /gcc/opts.c
parent3d5e3a45429377c725ddbf985a8137108b1dad76 (diff)
downloadgcc-fbd8e6fcc5a0d5b91b07a6d86ffdec02f251216e.tar.gz
* opts.c (wrap_help): Only pass int arguments as arguments to
printf's '*' modifier. Change argument of function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69124 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 052703fd94e..f9951a6a3cc 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);