X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fgenskel%2Fexprefs.c;h=4ea44b4d3c1c43482d163ed93a95bdc1eeb10d2c;hb=8cbdf0a5cb4d9abf0684344a28746a21dfc36ac3;hp=8d41cd5a5fa983efa7dc61ef151c577095de5cb1;hpb=b6ad3eb5c49252c989e0d8ecd2664aae10e8db8b;p=src%2Fapp-framework-binder.git 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; }