* prof_parse.c (skip_over_blanks, parse_std_line, need_double_quotes):
Likewise
On some systems, isspace() is a macro indexing an array. Gcc warns on
indexing an array with a char.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13335
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-06-11 Ezra Peisach <epeisach@mit.edu>
+
+ * argv_parse.c (argv_parse): Cast argument to isspace() as int.
+ * prof_parse.c (skip_over_blanks, parse_std_line, need_double_quotes):
+ Likewise
+
2001-06-11 Ezra Peisach <epeisach@mit.edu>
* Makefile.in (MLIBS): Do not link against libgen.a for test
outcp = buf;
for (cp = in_buf; (ch = *cp); cp++) {
if (state == STATE_WHITESPACE) {
- if (isspace(ch))
+ if (isspace((int) ch))
continue;
/* Not whitespace, so start a new token */
state = STATE_TOKEN;
continue;
}
/* Must be processing characters in a word */
- if (isspace(ch)) {
+ if (isspace((int) ch)) {
/*
* Terminate the current word and start
* looking for the beginning of the next word.
static char *skip_over_blanks(cp)
char *cp;
{
- while (*cp && isspace(*cp))
+ while (*cp && isspace((int) (*cp)))
cp++;
return cp;
}
do_subsection++;
else {
cp = value + strlen(value) - 1;
- while ((cp > value) && isspace(*cp))
+ while ((cp > value) && isspace((int) (*cp)))
*cp-- = 0;
}
if (do_subsection) {
{
if (!str || !*str)
return 0;
- if (isspace(*str) ||isspace(*(str + strlen(str) - 1)))
+ if (isspace((int) (*str)) ||isspace((int) (*(str + strlen(str) - 1))))
return 1;
if (strchr(str, '\n') || strchr(str, '\t') || strchr(str, '\b'))
return 1;