diff options
author | Miles Bader <miles@gnu.org> | 1997-05-09 19:56:35 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-05-09 19:56:35 +0000 |
commit | b9c534add123ffe57e3f4cc313d7fb3aaa375c70 (patch) | |
tree | 0e9babdc99e411bca9259f712e84e7e4b6f7f09b | |
parent | 38c7181dad6eff881c645a4501f1078ffaaf74c3 (diff) |
(canon_doc_option): Correct ctype tests.
-rw-r--r-- | libshouldbeinlibc/argp-help.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libshouldbeinlibc/argp-help.c b/libshouldbeinlibc/argp-help.c index 294c0ab9..a657fd8c 100644 --- a/libshouldbeinlibc/argp-help.c +++ b/libshouldbeinlibc/argp-help.c @@ -658,12 +658,12 @@ canon_doc_option (const char **name) { int non_opt; /* Skip initial whitespace. */ - while (isspace (*name)) + while (isspace (**name)) (*name)++; /* Decide whether this looks like an option (leading `-') or not. */ non_opt = (**name != '-'); /* Skip until part of name used for sorting. */ - while (**name && !isalnum (*name)) + while (**name && !isalnum (**name)) (*name)++; return non_opt; } @@ -1086,14 +1086,14 @@ hol_entry_help (struct hol_entry *entry, const struct argp_state *state, const char *fstr = filter_doc (tstr, real->key, entry->argp, state); if (fstr && *fstr) { - unsigned col = __argp_fmtstream_point (stream); + unsigned int col = __argp_fmtstream_point (stream); __argp_fmtstream_set_lmargin (stream, uparams.opt_doc_col); __argp_fmtstream_set_wmargin (stream, uparams.opt_doc_col); - if (col > uparams.opt_doc_col + 3) + if (col > (unsigned int) (uparams.opt_doc_col + 3)) __argp_fmtstream_putc (stream, '\n'); - else if (col >= uparams.opt_doc_col) + else if (col >= (unsigned int) uparams.opt_doc_col) __argp_fmtstream_puts (stream, " "); else indent_to (stream, uparams.opt_doc_col); |