Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165927
b: refs/heads/master
c: 26d052b
h: refs/heads/master
i:
  165925: f44a7d5
  165923: d1ddcf6
  165919: 4ed2904
v: v3
  • Loading branch information
Peter Oberparleiter authored and Rusty Russell committed Sep 24, 2009
1 parent c1a03ee commit e7efc7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 554bdfe5acf3715e87c8d5e25a4f9a896ac9f014
refs/heads/master: 26d052bfce799ef0e7262695b46e3525ca4d381d
7 changes: 4 additions & 3 deletions trunk/kernel/params.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <linux/device.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/ctype.h>

#if 0
#define DEBUGP printk
Expand Down Expand Up @@ -87,7 +88,7 @@ static char *next_arg(char *args, char **param, char **val)
}

for (i = 0; args[i]; i++) {
if (args[i] == ' ' && !in_quote)
if (isspace(args[i]) && !in_quote)
break;
if (equals == 0) {
if (args[i] == '=')
Expand Down Expand Up @@ -121,7 +122,7 @@ static char *next_arg(char *args, char **param, char **val)
next = args + i;

/* Chew up trailing spaces. */
while (*next == ' ')
while (isspace(*next))
next++;
return next;
}
Expand All @@ -138,7 +139,7 @@ int parse_args(const char *name,
DEBUGP("Parsing ARGS: %s\n", args);

/* Chew leading spaces */
while (*args == ' ')
while (isspace(*args))
args++;

while (*args) {
Expand Down

0 comments on commit e7efc7b

Please sign in to comment.