|
@@ -23,6 +23,7 @@
|
|
#include <linux/device.h>
|
|
#include <linux/device.h>
|
|
#include <linux/err.h>
|
|
#include <linux/err.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/slab.h>
|
|
|
|
+#include <linux/ctype.h>
|
|
|
|
|
|
#if 0
|
|
#if 0
|
|
#define DEBUGP printk
|
|
#define DEBUGP printk
|
|
@@ -87,7 +88,7 @@ static char *next_arg(char *args, char **param, char **val)
|
|
}
|
|
}
|
|
|
|
|
|
for (i = 0; args[i]; i++) {
|
|
for (i = 0; args[i]; i++) {
|
|
- if (args[i] == ' ' && !in_quote)
|
|
|
|
|
|
+ if (isspace(args[i]) && !in_quote)
|
|
break;
|
|
break;
|
|
if (equals == 0) {
|
|
if (equals == 0) {
|
|
if (args[i] == '=')
|
|
if (args[i] == '=')
|
|
@@ -121,7 +122,7 @@ static char *next_arg(char *args, char **param, char **val)
|
|
next = args + i;
|
|
next = args + i;
|
|
|
|
|
|
/* Chew up trailing spaces. */
|
|
/* Chew up trailing spaces. */
|
|
- while (*next == ' ')
|
|
|
|
|
|
+ while (isspace(*next))
|
|
next++;
|
|
next++;
|
|
return next;
|
|
return next;
|
|
}
|
|
}
|
|
@@ -138,7 +139,7 @@ int parse_args(const char *name,
|
|
DEBUGP("Parsing ARGS: %s\n", args);
|
|
DEBUGP("Parsing ARGS: %s\n", args);
|
|
|
|
|
|
/* Chew leading spaces */
|
|
/* Chew leading spaces */
|
|
- while (*args == ' ')
|
|
|
|
|
|
+ while (isspace(*args))
|
|
args++;
|
|
args++;
|
|
|
|
|
|
while (*args) {
|
|
while (*args) {
|