summaryrefslogtreecommitdiffstats
path: root/src/genskel/exprefs.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-09-12 12:18:22 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-10-09 14:08:28 +0200
commitd7933c0f61a3316cc3d1ca7e74d30e193de2f612 (patch)
tree6ebe406737dd3b4ce2b13037dfda8f4b5bdcf6a2 /src/genskel/exprefs.c
parentf51249605057fcb4441db7e92c34e37a48d7cf1d (diff)
Remove tailing spaces and TODO file
Change-Id: Id7cdad4e24c6ab62bf9c325b542e1605b17223f4 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/genskel/exprefs.c')
-rw-r--r--src/genskel/exprefs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/genskel/exprefs.c b/src/genskel/exprefs.c
index 8d41cd5a..4ea44b4d 100644
--- a/src/genskel/exprefs.c
+++ b/src/genskel/exprefs.c
@@ -34,7 +34,7 @@
* "b": "int"
* }
* }
- *
+ *
* Invocation: program [file|-]...
*
* without arguments, it reads the input.
@@ -80,7 +80,7 @@ struct json_object *search(const char *path)
d = strtok(d, "/");
while(i && d) {
if (!json_object_object_get_ex(i, d, &i))
- return NULL;
+ return NULL;
d = strtok(NULL, "/");
}
return i;
@@ -94,7 +94,7 @@ struct json_object *expand(struct path path)
struct path *p;
struct json_object *o, *x;
int n, i;
- struct json_object_iterator ji, jn;
+ struct json_object_iterator ji, jn;
/* expansion depends of the type of the node */
switch (json_object_get_type(path.object)) {
@@ -192,7 +192,7 @@ int main(int ac, char **av)
process("-");
else {
do { process(*av); } while(*++av);
- }
+ }
return 0;
}