Message ID | 20180906114041.21828-8-sbabic@denx.de |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRBR5EYTOAKGQEJKGH72I@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=googlegroups.com (client-ip=209.85.208.55; helo=mail-ed1-f55.google.com; envelope-from=swupdate+bncbcxploxj6ikrbr5eytoakgqejkgh72i@googlegroups.com; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="PaTrnqb4"; dkim-atps=neutral Received: from mail-ed1-f55.google.com (mail-ed1-f55.google.com [209.85.208.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 425dtf4mZ8z9s4Z for <incoming@patchwork.ozlabs.org>; Thu, 6 Sep 2018 21:40:58 +1000 (AEST) Received: by mail-ed1-f55.google.com with SMTP id g15-v6sf3550642edm.11 for <incoming@patchwork.ozlabs.org>; Thu, 06 Sep 2018 04:40:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1536234056; cv=pass; d=google.com; s=arc-20160816; b=C5LzHCEukeFzQmbCDr9yzC0RSvsiKSl3VIC+PD9d2riM/Y8zHzI0ZsHlD5Rwn7esAh 3F8gXTtmRxSUTG6mxNQIKlZDuwwxhAljf6653mRGzd88wEDZebn6VAoffPhadNsBBxoN yb2PHeeCpxt9e9APJQrPSvdV6KjNIEMSdeRwP7ZUOOovBvTv0PyBT8seLGuBysPTt2aM G3CFm+75XbVZbHu53TRNG7MDCZKrF05942ktH7DA0+PwtLl0hsjBwLnsZoPY+6pNoJ51 uEuaHrW4P4zcEDlJWPJl/MG8WHyDy0mgr6JfoTAcC3phs/5C65+pudTHdZmdsZI5Vd0u K/8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:mime-version:sender:dkim-signature; bh=40F7vrTZE4bJRsw+6bfzuaByYJODXi66QcDeskCVkgE=; b=W9mdoOP4rCepasCHEJW6SgpyL6Oja1CCp7iCL4IBB27zHSEy5yUdGGmZvSMzpgClIa v8ps8Cs1CL+5sTXxGGMVAPcVjrJoqNiZipwz1pPKyhLCrrOuJjIrUcslnOXGvV4OeOgf xgRg4N2fApaF/xIuomTTGZjFIVM1uApY83bSE23WakuhaKIzftgVoMHlrJ0tUw3tXh7J leRP6NJ566GjKNkV7lCEJWgnOD2KodComTs+GDRP3loSg5CSzqvmKb1XxkvS2rv9MrkU tDUq0AWxBcqK1L68RBQRcSkc/ENeereKUS+sZ9P8nIxkEqN5qZhVMu1NSK5m+mjWcsG5 lJhw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=40F7vrTZE4bJRsw+6bfzuaByYJODXi66QcDeskCVkgE=; b=PaTrnqb4HXufK2CMeJ+b5/AL8zTEUoHk/TtPiMFD+mf8Za7vnCIn+cX+Uzh0xgP8rQ +vOiln89F23LFYzZ4nJMQE6dpIuDIE9uIvWWE8CO8zE/kW2Qr46IJ2pqmSQqf15e8eph TPjOk4H3EseZuiOD6kjH07vt8mdFm7VUJsVScJiotiGsEVM5ex6aU4MOIU8xew9fYy/R JXD/vKhszpaOxBNav7KfG55iNwjiPNZSTUaK/t6v2dYiPIBliLnLtEIfA7+paMDriRa1 bKid5lJ9ZzthgcXnS7Ixo05MdXgtcF81nf+XxOvsaCKmJo2l9OvAj1nO2l4Q6KjjqDee vtQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=40F7vrTZE4bJRsw+6bfzuaByYJODXi66QcDeskCVkgE=; b=XjUXcAD92IsGzIkx/t//YA5oGvwCQrPZcYf+uIa+SojoplYovCHN4ANZVEAmXJayL3 CuDzFH+fAHDfocpfFCJ0zXgsZkO0MJ/ZpkyYvIICjaO+Ye86ojddEMtiNQ2UN4KDSVcv CTTC8s79XwuN2Zj7FR59vjtj7rJpSUizI2GRF1yr67WyfwYr/kIF9Smf2/u26ee2ZBeA Ztr7+dJZFxy230r7uZDy1CqbACCBh0lcOeOx/+JCGMEgWlk6DIj10E1YyjckN8XZnWFC sJ64Jibi94Ll4vt4RNNrV7A5y2AU61CGhDhzzjO7rJNS+YgxDL3sEJAIW5Px6cDtOxDh p91g== Sender: swupdate@googlegroups.com X-Gm-Message-State: APzg51DjFNm8DwGAZHeLLFNl0IgBBakC7vwcvVoLOp7rSrv+gNxeLIn/ MSNC3wP5Fwy66seuIV9SXLo= X-Google-Smtp-Source: ANB0VdbBVIfi+jp8WGFPu2FdcyhBgu0HOdwAPmRKIw+ruhkx7BF29b4h0isSMatYGf446N2kSTUbGQ== X-Received: by 2002:aa7:d70f:: with SMTP id t15-v6mr16102edq.6.1536234056069; Thu, 06 Sep 2018 04:40:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 2002:a50:b364:: with SMTP id r33-v6ls2348268edd.3.gmail; Thu, 06 Sep 2018 04:40:55 -0700 (PDT) X-Received: by 2002:a50:b125:: with SMTP id k34-v6mr656481edd.8.1536234055658; Thu, 06 Sep 2018 04:40:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536234055; cv=none; d=google.com; s=arc-20160816; b=b9aXFtyjeGnEftfwrxml/KpdnLCbTzhc3YIipfFPjFgeLabZgGtRwpedThf69DHN8C 0Tsp38UVPdFirzeHIn56lcgf01bt+EjIGFuHuGejk8fE5Eg75vISuFlsH91M/ZsU6e4b uUGyf52gs8yb9SBEwE9BYO8m3SHVxVOOC1ZtP0HDHO0XsnyPmFEryN/cPqNw2ez3+hEP DCn2S4V9RSmmCGsQ6q1+E8lbb/udnPfmbtvBis4TZVQ9HTtie8d07em/q8Gr4fDae0Fr mGmXN56RCBdUYsM46XEG7luhRYfVfnN3P4qYjaYNJvd6rF6OWj998mHKyC21mFpBqK/C n8cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=asnrLPEwGJGP3hqPmr0YIOvPCmnhr3FfDzd2oZ6WJq4=; b=keEKc4xmuRynNCW7WN+HXV/VvV/PPmky5DJr1GTOONkqmugbG39w+sLEJAvRR5wc6/ 8KA/S+s4OHFrNOvaV5zToaRWZ5PJhsHG8IrMSul6d3cy+hHiux8HcLGFdnYb6rYqT9Fa 7ntEaPQ4HuC3IkY++ISA6UIsWWdEKDIJNuq9bcikBZSaX2KXK23RTdvRzHXgk3daSylu Gf08V6jURQFEiFxgq0dOAbLt6PjyvBZsy2KGJPaq0CQ9615VVSD7JtT8aZ7CBkcUrP7R 6QaIUPzuEAI6BIHtiufaRWYgS/UqSE6QpteuAnIzOhjpPfqKRiyRqTtBkVghmSwoj/SZ oioQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.10]) by gmr-mx.google.com with ESMTPS id g20-v6si104964edm.0.2018.09.06.04.40.55 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Sep 2018 04:40:55 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=212.18.0.10; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 425dtb2zfXz1qvnY; Thu, 6 Sep 2018 13:40:55 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 425dtb2p5xz1qrVm; Thu, 6 Sep 2018 13:40:55 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id FC7t3dtknSJd; Thu, 6 Sep 2018 13:40:54 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Thu, 6 Sep 2018 13:40:54 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 6EC0B454035B; Thu, 6 Sep 2018 13:40:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3VMoK13ryFim; Thu, 6 Sep 2018 13:40:52 +0200 (CEST) Received: from papero.fritz.box (papero.fritz.box [192.168.178.132]) by babic.homelinux.org (Postfix) with ESMTP id 577574540568; Thu, 6 Sep 2018 13:40:44 +0200 (CEST) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [PATCH 8/9] hawkbit: rename section in swupdate.cfg Date: Thu, 6 Sep 2018 13:40:40 +0200 Message-Id: <20180906114041.21828-8-sbabic@denx.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180906114041.21828-1-sbabic@denx.de> References: <20180906114041.21828-1-sbabic@denx.de> X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
[1/9] Use provided macro for exit()
|
expand
|
diff --git a/suricatta/server_hawkbit.c b/suricatta/server_hawkbit.c index 31266c0..106b535 100644 --- a/suricatta/server_hawkbit.c +++ b/suricatta/server_hawkbit.c @@ -1501,7 +1501,7 @@ void suricatta_print_help(void) DEFAULT_RESUME_DELAY); } -static int suricatta_settings(void *elem, void __attribute__ ((__unused__)) *data) +static int server_hawkbit_settings(void *elem, void __attribute__ ((__unused__)) *data) { char tmp[128]; @@ -1566,7 +1566,16 @@ server_op_res_t server_start(char *fname, int argc, char *argv[]) LIST_INIT(&server_hawkbit.configdata); if (fname) { - read_module_settings(fname, "suricatta", suricatta_settings, + /* + * Search "suricatta" section to be compatible with past + */ + read_module_settings(fname, "suricatta", server_hawkbit_settings, + NULL); + /* + * Then try "hawkbit" because each server has its own + * section + */ + read_module_settings(fname, "hawkbit", server_hawkbit_settings, NULL); read_module_settings(fname, "identify", settings_into_dict, &server_hawkbit.configdata);
As preparation to support more server in suricatta mode, rename the section for hawkbit from "suricatta" to "hawkbit", but still search in "suricatta" to maintain compatibility. Signed-off-by: Stefano Babic <sbabic@denx.de> --- suricatta/server_hawkbit.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)