From patchwork Tue Dec 16 07:00:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yousong Zhou X-Patchwork-Id: 422454 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 8AE23140079 for ; Thu, 18 Dec 2014 13:53:42 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id BF7C42890C2; Thu, 18 Dec 2014 03:51:15 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, DATE_IN_PAST_24_48, FREEMAIL_FROM,T_DKIM_INVALID autolearn=no version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 18A7A2890C2 for ; Thu, 18 Dec 2014 03:51:14 +0100 (CET) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Thu, 18 Dec 2014 03:51:11 +0100 (CET) Received: by mail-pa0-f53.google.com with SMTP id kq14so408590pab.26 for ; Wed, 17 Dec 2014 18:53:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sWcIvZDx1QML4pg+0OGTjgBj8MG2xWEzmUlYl2Kj2h4=; b=Ke3ROcsMydOypU2JHs9OmSYuR6Inzmajrcp1qCJqLjbAXtmpmnrsdZgv/b+l8ZO3V0 YJuEAhiygFzVS2xhbEQEF5skjYsUOoht5Wsouu/QJrwMh9+smqf+0KI/GFgS6GaslUVJ R9MNlti5mSNXsR6vgdDIageHp3wlfkU6YEaaLgSR/nj5b3n5Ics9jJ7NzEkXVcR5xY3g sDUniSsIJJofsmLwNIreUZYETUpONSggrG3qcoV2N/hWa2d8qiwAjkiFiqF1b4/DfM/M 40v4yH93cagNZS6sHk904eKZR31sQULj1IoFaMZp9G6CAbBZsDks9Sp/zx+TaHs/itVl NB/w== X-Received: by 10.68.134.164 with SMTP id pl4mr74531371pbb.128.1418871181821; Wed, 17 Dec 2014 18:53:01 -0800 (PST) Received: from debian.lan ([103.29.140.56]) by mx.google.com with ESMTPSA id oy7sm5104495pbc.88.2014.12.17.18.52.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Dec 2014 18:53:00 -0800 (PST) From: Yousong Zhou To: nbd@openwrt.org Date: Tue, 16 Dec 2014 15:00:03 +0800 Message-Id: <1418713218-16300-2-git-send-email-yszhou4tech@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1418713218-16300-1-git-send-email-yszhou4tech@gmail.com> References: <1418713218-16300-1-git-send-email-yszhou4tech@gmail.com> Cc: openwrt-devel@lists.openwrt.org Subject: [OpenWrt-Devel] [PATCH v2 01/16] Fix a few style issues. X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" - Remove deprecated uci-static and ucimap-example from .gitignore. - Minor code formatting fix. Signed-off-by: Yousong Zhou --- .gitignore | 2 -- file.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c3e50e0..0407feb 100644 --- a/.gitignore +++ b/.gitignore @@ -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 ffa3afa..63ca919 100644 --- 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 {