projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54a687f
)
ovsdb-data: Allow arbitrary white space as string data delimiters.
author
Ben Pfaff
<blp@nicira.com>
Wed, 27 Jan 2010 23:58:32 +0000
(15:58 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 28 Jan 2010 22:22:40 +0000
(14:22 -0800)
lib/ovsdb-data.c
patch
|
blob
|
history
diff --git
a/lib/ovsdb-data.c
b/lib/ovsdb-data.c
index 70e290b0889bf268713511f3952248e700c834ce..1f3a89d633cf6fa6a07a030fa411cbe4c15221d7 100644
(file)
--- a/
lib/ovsdb-data.c
+++ b/
lib/ovsdb-data.c
@@
-813,7
+813,10
@@
ovsdb_datum_to_json(const struct ovsdb_datum *datum,
static const char *
skip_spaces(const char *p)
{
- return p + strspn(p, " ");
+ while (isspace((unsigned char) *p)) {
+ p++;
+ }
+ return p;
}
static char *