Fix a few style issues.
authorYousong Zhou <yszhou4tech@gmail.com>
Tue, 16 Dec 2014 07:00:03 +0000 (15:00 +0800)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 18 Dec 2014 11:38:14 +0000 (12:38 +0100)
 - Remove deprecated uci-static and ucimap-example from .gitignore.
 - Minor code formatting fix.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
.gitignore
file.c

index c3e50e0da597eaa743f60ee51092677d1eec50e3..0407feb44c2b1571f2745ee0d9de03aa61a85604 100644 (file)
@@ -9,7 +9,5 @@ CMakeFiles
 install_manifest.txt
 
 uci
-uci-static
-ucimap-example
 uci_config.h
 test/save
diff --git a/file.c b/file.c
index ffa3afa7c1d74ec7d9b1ac2cc0cb12eb46e97bd6..63ca9193725a46f0fee4ce4d17305dcf48ca50c9 100644 (file)
--- a/file.c
+++ b/file.c
@@ -246,7 +246,7 @@ static char *next_arg(struct uci_context *ctx, bool required, bool name)
 
        skip_whitespace(ctx);
        val = ptr = pctx_pos(pctx);
-       if(pctx_cur_char(pctx) == ';') {
+       if (pctx_cur_char(pctx) == ';') {
                pctx_cur_char(pctx) = 0;
                pctx->pos += 1;
        } else {