projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tracing/filters: Use a different op for glob match
[deliverable/linux.git]
/
kernel
/
params.c
diff --git
a/kernel/params.c
b/kernel/params.c
index 7f6912ced2bab2c957da0ef3edc6e70625560837..9da58eabdcb246dd3b156d7799ca49bf2799a304 100644
(file)
--- a/
kernel/params.c
+++ b/
kernel/params.c
@@
-23,6
+23,7
@@
#include <linux/device.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/slab.h>
+#include <linux/ctype.h>
#if 0
#define DEBUGP printk
#if 0
#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;
if (equals == 0) {
if (args[i] == '=')
break;
if (equals == 0) {
if (args[i] == '=')
@@
-121,7
+122,7
@@
static char *next_arg(char *args, char **param, char **val)
next = args + i;
/* Chew up trailing spaces. */
next = args + i;
/* Chew up trailing spaces. */
- while (
*next == ' '
)
+ while (
isspace(*next)
)
next++;
return next;
}
next++;
return next;
}
@@
-138,7
+139,7
@@
int parse_args(const char *name,
DEBUGP("Parsing ARGS: %s\n", args);
/* Chew leading spaces */
DEBUGP("Parsing ARGS: %s\n", args);
/* Chew leading spaces */
- while (
*args == ' '
)
+ while (
isspace(*args)
)
args++;
while (*args) {
args++;
while (*args) {
This page took
0.028246 seconds
and
5
git commands to generate.