diff options
author | H. Peter Anvin <hpa@zytor.com> | 2006-01-19 08:52:09 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2006-01-19 08:52:09 -0800 |
commit | e9f0a6a9c46bb2b8806e69ec6b62a00fcb7ff4fa (patch) | |
tree | d452c177b458bfd68cc3f555ebbb2a7c065450cd /com32/modules/readconfig.c | |
parent | a16afeb49ad4daa97f895a98ac42d551785fff54 (diff) | |
download | syslinux-e9f0a6a9c46bb2b8806e69ec6b62a00fcb7ff4fa.tar.gz |
Clean up the handling of "extended whitespace"; fix typos
Diffstat (limited to 'com32/modules/readconfig.c')
-rw-r--r-- | com32/modules/readconfig.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/com32/modules/readconfig.c b/com32/modules/readconfig.c index 2208d23f..4fb5b07e 100644 --- a/com32/modules/readconfig.c +++ b/com32/modules/readconfig.c @@ -89,7 +89,7 @@ get_config(void) static char * skipspace(char *p) { - while ( *p && *p <= ' ' ) + while ( *p && my_isspace(*p) ) p++; return p; @@ -111,7 +111,7 @@ looking_at(char *line, const char *kwd) if ( *q ) return NULL; /* Didn't see the keyword */ - return (*p <= ' ') ? p : NULL; /* Must be EOL or whitespace */ + return my_isspace(*p) ? p : NULL; /* Must be EOL or whitespace */ } struct labeldata { @@ -195,14 +195,14 @@ unlabel(char *str) int i, pos; p = str; - while ( *p && !isspace(*p) ) + while ( *p && !my_isspace(*p) ) p++; /* p now points to the first byte beyond the kernel name */ pos = p-str; for ( i = 0 ; i < nentries ; i++ ) { - me = &menu_entry[i]; + me = &menu_entries[i]; if ( !strncmp(str, me->label, pos) && !me->label[pos] ) { /* Found matching label */ |