aboutsummaryrefslogtreecommitdiffstats
path: root/com32/menu
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-02-07 23:11:39 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-02-07 23:11:39 +0100
commit6d0cfd4b044a0e8294d27921cef9a10ce2cbaa7a (patch)
treeb3ff970599742ac5065a8a95ede9293c3ffe6e1d /com32/menu
parentc030de4a10babd0b7f297ed952678676838927d4 (diff)
downloadsyslinux-6d0cfd4b044a0e8294d27921cef9a10ce2cbaa7a.tar.gz
syslinux-6d0cfd4b044a0e8294d27921cef9a10ce2cbaa7a.tar.xz
syslinux-6d0cfd4b044a0e8294d27921cef9a10ce2cbaa7a.zip
com32: single instance of skipspace()
no need to keep several versions of it.
Diffstat (limited to 'com32/menu')
-rw-r--r--com32/menu/readconfig.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/com32/menu/readconfig.c b/com32/menu/readconfig.c
index 8c16fda1..f3b0f96d 100644
--- a/com32/menu/readconfig.c
+++ b/com32/menu/readconfig.c
@@ -15,6 +15,7 @@
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
+#include <ctype.h>
#include <minmax.h>
#include <alloca.h>
#include <inttypes.h>
@@ -92,14 +93,6 @@ static struct menu *find_menu(const char *label)
#define MAX_LINE 4096
-static char *skipspace(char *p)
-{
- while (*p && my_isspace(*p))
- p++;
-
- return p;
-}
-
/* Strip ^ from a string, returning a new reference to the same refstring
if none present */
static const char *strip_caret(const char *str)