* util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
* grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
This commit is contained in:
parent
17edc2ba56
commit
88d51eff35
3 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
|
||||
* grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
|
||||
|
||||
2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/i386/pc/startup.S: Define __start.
|
||||
|
|
|
@ -1179,7 +1179,7 @@ read_device_map (const char *dev_map)
|
|||
lineno++;
|
||||
|
||||
/* Skip leading spaces. */
|
||||
while (*p && isspace (*p))
|
||||
while (*p && grub_isspace (*p))
|
||||
p++;
|
||||
|
||||
/* If the first character is `#' or NUL, skip this line. */
|
||||
|
@ -1215,7 +1215,7 @@ read_device_map (const char *dev_map)
|
|||
|
||||
p++;
|
||||
/* Skip leading spaces. */
|
||||
while (*p && isspace (*p))
|
||||
while (*p && grub_isspace (*p))
|
||||
p++;
|
||||
|
||||
if (*p == '\0')
|
||||
|
@ -1223,7 +1223,7 @@ read_device_map (const char *dev_map)
|
|||
|
||||
/* NUL-terminate the filename. */
|
||||
e = p;
|
||||
while (*e && ! isspace (*e))
|
||||
while (*e && ! grub_isspace (*e))
|
||||
e++;
|
||||
*e = '\0';
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <errno.h>
|
||||
|
||||
#include <grub/emu/misc.h>
|
||||
#include <grub/misc.h>
|
||||
#include <grub/util/misc.h>
|
||||
#include <grub/util/resolve.h>
|
||||
#include <grub/i18n.h>
|
||||
|
@ -107,7 +108,7 @@ read_dep_list (FILE *fp)
|
|||
char *name;
|
||||
|
||||
/* Skip whitespace. */
|
||||
while (*p && isspace (*p))
|
||||
while (*p && grub_isspace (*p))
|
||||
p++;
|
||||
|
||||
if (! *p)
|
||||
|
@ -116,7 +117,7 @@ read_dep_list (FILE *fp)
|
|||
name = p;
|
||||
|
||||
/* Skip non-whitespace. */
|
||||
while (*p && ! isspace (*p))
|
||||
while (*p && ! grub_isspace (*p))
|
||||
p++;
|
||||
|
||||
*p++ = '\0';
|
||||
|
|
Loading…
Reference in a new issue