Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp640572ybm; Fri, 29 May 2020 08:40:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzM7px+E9+PfDK0FdRJi+aHboF5nwFt93+hWL30PG8Xq6a6rZQYVbzuViQu9R8+EE4RDHGY X-Received: by 2002:a17:906:2343:: with SMTP id m3mr7992848eja.301.1590766820157; Fri, 29 May 2020 08:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590766820; cv=none; d=google.com; s=arc-20160816; b=myUgrHW0km4bPPhlJPJ9GI0T2vR1RkSRVJVcSMYcbwBf1ItRni2DMadHmm6fqKieTr bi4OiB9VWXPLztMqJPWLEOYMV/Ve5m8i6hkwMt7I6KP61ORtoF6L7jY2d8e51KTjxvq2 9/OH3zJv3tG928QfoRoyserQE+2bcP+te6E1matXCmAnf9F1wW7B8HDXAyvJXJd6ZITl f3CYNGs6wmieCoj0QkoLV1K+T4+0dKm3PWcFTKwwh23coa0JS35tZFaPPns7kpg51Tq4 CyG8xxlfxZ5Sj0aI5nGJb8Gkt38L/NPLitMthvl02tCPtxezhUH/4XvwWhB9fve9DUqU UUBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=F2ZqteO5Fl457QXeO6VJQuX//SkTDU319wEQJIAHCbg=; b=YtdSk7jrcXoJMLndRbiU/ZA3XhVMv3x7lF6m2oQHMhpijAOVq8sg3OwSlVDkK0xgIK 1EJp/B1UCmw64G/YnfmhQY7Jp2bCxKO1JqiK9R+uhCZGF/BQZ6XwrZNplG93znRcGn5T zwXwruA/3PO7w8Fz1l13s2HRuE0oYdUcSEA5zU+MwpmcLk84BC6FkBxNiAuxWQAtM2pv dMEdbhn/b89YftNQJLCmmYBfUQGI5Ydg9ymrzNgkQSdWSIUYm5XigeQ/oPJlJFD0lnLI n8ErpKeqD5qy+8bYtIIN/Zgu5NNKdKQpH6eCQ04oC8wD8OiM3s6GOhJtI/CatC9rXA27 14aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=S1MxHWQz; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z6si5705715eju.289.2020.05.29.08.39.55; Fri, 29 May 2020 08:40:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=S1MxHWQz; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726898AbgE2Pji (ORCPT + 99 others); Fri, 29 May 2020 11:39:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726838AbgE2Pji (ORCPT ); Fri, 29 May 2020 11:39:38 -0400 Received: from mail-vs1-xe33.google.com (mail-vs1-xe33.google.com [IPv6:2607:f8b0:4864:20::e33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14490C03E969 for ; Fri, 29 May 2020 08:39:38 -0700 (PDT) Received: by mail-vs1-xe33.google.com with SMTP id a68so1733172vsd.8 for ; Fri, 29 May 2020 08:39:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=F2ZqteO5Fl457QXeO6VJQuX//SkTDU319wEQJIAHCbg=; b=S1MxHWQz8z5UywgSr+lZEtNog26SLKx72uEnIjRWgBPzD5pmIqZGRjTyiBrZy8LUSd Hzl4SNJk8JvxrSvXiZ0Y/ihuO3eOFjYOgxtB4AGy5jXpMzH//6l/vqxJCG9YuIPSvcKi /cXkLrp3WqdTPIx+IJmvOr11Onho3SPsjZSoM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=F2ZqteO5Fl457QXeO6VJQuX//SkTDU319wEQJIAHCbg=; b=AwIea9pOX9fXsZkU4XMRZtgDUekHUswlyACkYNHJ6/fixeDjiFwE5xm4ETstA46fVV hiExgjHucCYXXCkZAfXQnfeTCKF/hYm/rCIgfRAgP3d/fVw4I23M3Pgg22sdtUgMW7p3 Y5ZgGvzW+g8SRT1HZKNmEKrHFTKp03911krGSOWAZSYyogErPsQuAEB5cyqZFybeOQpE lV3j2IodZoVgdJx7rCKbVPey8wKpt4nsxjXSpvf8UsIE6N0zyGvwkVMbccHzNkBx0zNB ZigUbc8jKLG+wWwMg0LVkpWN7I/cq1okK7tId/fz7uZ6CZFL4fvJU9p1vw2ohysG5jBE b+6w== X-Gm-Message-State: AOAM531iFYm11J3FV5T74ALeA6MdzIwgAdfWZ8BKlCeVyr2XlAG0kxyH fkr+YhcCfeKYGYPMUeR3/N6ptLGhdXQ= X-Received: by 2002:a67:407:: with SMTP id 7mr6129672vse.95.1590766777026; Fri, 29 May 2020 08:39:37 -0700 (PDT) Received: from alain.c.googlers.com.com (252.177.243.35.bc.googleusercontent.com. [35.243.177.252]) by smtp.gmail.com with ESMTPSA id o2sm1309494vkl.27.2020.05.29.08.39.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 May 2020 08:39:36 -0700 (PDT) From: Alain Michaud To: linux-bluetooth@vger.kernel.org Cc: Alain Michaud Subject: [BlueZ PATCH v3 4/4] fixing const decoration warnins on options. Date: Fri, 29 May 2020 15:38:17 +0000 Message-Id: <20200529153814.213125-5-alainm@chromium.org> X-Mailer: git-send-email 2.27.0.rc0.183.gde8f92d652-goog In-Reply-To: <20200529153814.213125-1-alainm@chromium.org> References: <20200529153814.213125-1-alainm@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This changes fixes const decoration warnins on options. --- Changes in v3: None Changes in v2: None src/main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.c b/src/main.c index ca27f313d..cea50a3d2 100644 --- a/src/main.c +++ b/src/main.c @@ -80,7 +80,7 @@ static enum { MPS_MULTIPLE, } mps = MPS_OFF; -static const char *supported_options[] = { +static const char * const supported_options[] = { "Name", "Class", "DiscoverableTimeout", @@ -129,7 +129,7 @@ static const char * const controller_options[] = { NULL }; -static const char *policy_options[] = { +static const char * const policy_options[] = { "ReconnectUUIDs", "ReconnectAttempts", "ReconnectIntervals", @@ -137,7 +137,7 @@ static const char *policy_options[] = { NULL }; -static const char *gatt_options[] = { +static const char * const gatt_options[] = { "Cache", "KeySize", "ExchangeMTU", @@ -146,8 +146,8 @@ static const char *gatt_options[] = { }; static const struct group_table { - const char *name; - const char **options; + const char * const name; + const char * const * const options; } valid_groups[] = { { "General", supported_options }, { "Controller", controller_options }, @@ -243,7 +243,7 @@ static enum jw_repairing_t parse_jw_repairing(const char *jw_repairing) static void check_options(GKeyFile *config, const char *group, - const char **options) + const char * const * const options) { char **keys; int i; -- 2.27.0.rc0.183.gde8f92d652-goog