diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-06-21 10:23:17 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-06-21 10:23:17 -0700 |
commit | bda7a6e3715b270ebb0854b3cef667976d241d96 (patch) | |
tree | 86e645d4e025b1dbf0169d0a4ce1c6ec602a15d5 /output/outrdf2.c | |
parent | 86877b294aabac1059d32611c8dce65910243454 (diff) | |
download | nasm-bda7a6e3715b270ebb0854b3cef667976d241d96.tar.gz |
ctype.h: wrapper ctype functions with a cast to (unsigned char)
ctype functions take an *int*, which the user is expected to have
taken the input character from getc() and friends, or taken a
character and cast it to (unsigned char).
We don't care about EOF (-1), so use macros that cast to (unsigned
char) for us.
Diffstat (limited to 'output/outrdf2.c')
-rw-r--r-- | output/outrdf2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/output/outrdf2.c b/output/outrdf2.c index b00ad43e..b502715b 100644 --- a/output/outrdf2.c +++ b/output/outrdf2.c @@ -155,11 +155,11 @@ static int32_t rdf2_section_names(char *name, int pass, int *bits) /* look for segment type code following segment name */ p = name; - while (*p && !isspace(*p)) + while (*p && !nasm_isspace(*p)) p++; if (*p) { /* we're now in whitespace */ *p++ = '\0'; - while (*p && isspace(80)) + while (*p && nasm_isspace(80)) *p++ = '\0'; } if (*p) { /* we're now in an attribute value */ @@ -418,7 +418,7 @@ static void rdf2_deflabel(char *name, int32_t segment, int64_t offset, } if (*special) { - while (isspace(*special)) + while (nasm_isspace(*special)) special++; if (!nasm_stricmp(special, "far")) { farsym = 1; |