Message ID | 20230512123504.160169-3-sbabic@denx.de |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCXPLOXJ6IKRBAPF7CRAMGQEEM53SMY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::240; helo=mail-lj1-x240.google.com; envelope-from=swupdate+bncbcxploxj6ikrbapf7cramgqeem53smy@googlegroups.com; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20221208 header.b=Rb+ju0cq; dkim-atps=neutral Received: from mail-lj1-x240.google.com (mail-lj1-x240.google.com [IPv6:2a00:1450:4864:20::240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QHpBZ5ZGcz20KJ for <incoming@patchwork.ozlabs.org>; Fri, 12 May 2023 22:35:18 +1000 (AEST) Received: by mail-lj1-x240.google.com with SMTP id 38308e7fff4ca-2ac98a3d564sf36247631fa.3 for <incoming@patchwork.ozlabs.org>; Fri, 12 May 2023 05:35:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683894914; cv=pass; d=google.com; s=arc-20160816; b=WciOBNEeseZDvpcpXfGQc1eIj060FncATlQa+r69WUhafxLPMbew05dgVI6jYjsp6L i7AHSfdulKnyt48ROi/lnMulOSNITLxeNIgdD7HDGG3LW9E76R+6D6/Fw3gUJDcSIJ7l p1lOdGnqs5811x4mg/FvB7Gvw1QNyIBmOg6ywyIJuAmElTty114erxBxjdaepZY5piGb PFdIU0lP1jt4IZPOXpaWdCjRbFFRZR7bAExPUFICWpQ/unRMJ62Cpat7Vu1O7hT9PMT1 mJELoiydo4YYp5DaoGK4mXkNtnUQvAbZckEIAedmypWJgwZuOnldpZsX/Fefc0x6Fdkp 6axQ== 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:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=H9vzlh6xVZzjtj09pibrinC298R09a8aftv+apvm8+c=; b=c8Qdf8K0EQfoItirbA24yL600z7TzxvrkfnOfYBQqaMvFudwEwwKfQZyycy2RD4V49 0AzoCPhVqUTWPnI/p3sbVrCQXNUaYZ+qmxMJpF+5i2azXlqQUskWTVMVYMzNGz+JN7Ea ez7gXzmiZfNBnxxGKcrInpBWNf1cpPSo8XEFHbBw7J2UtULxN9TQTZX0/R1/foIdwiNY BgIFaZJQcc8cX9I2kyx8R6Mj5iN2/UeFO4QozzhZuDvj9F80FDNZoThpaR0t9PizSlAr BBQMpy99evrA+b1u/7k0yOCGCvfBLheRsnJjQqUPXAKOnY/MFA12ih8lFYcFxg7XBeck /TGQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1683894914; x=1686486914; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=H9vzlh6xVZzjtj09pibrinC298R09a8aftv+apvm8+c=; b=Rb+ju0cqxfYobJEN6xRqSFsrK/sgxFsjfTbEHME3qFUuRyDQ9yEOaOtR3GuPCyoAle utyd5SeJ4STcaud/rbYgi/qY+rFYwatiF1FcIw1tKs9YHI/au4ECt1CKxsi+WWEs4ZKd YpqE6uPUxo+PYt6zmKYMKXzHIH5r7fOY3qHR5pihIbYNKQ5HzVkmPHFzQzPE9QnD+lBl KMy4E/rNHsLR887BazW998PZGqCohip2YJuRsOY3zPFXhuDUjcJ1+/qCKex+fNFLZ6Kx bpb8u02Q9Xl36ZIjLAADJ0HybNosFPQo9u+7Omb9YeaU+xz998O+eWbe1hWtnPVVCos3 iJNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683894914; x=1686486914; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=H9vzlh6xVZzjtj09pibrinC298R09a8aftv+apvm8+c=; b=dgPKJ7aMRdIWVXnoWfHypY7M4jH2DB3RD0U2XnQ4TEGl2JRKdZ0Scn1I+EGR335XTu uqmSFvONp8z8//riAijmpeuGcweUCBDqFat5cuglW0SpZeqtn/NrkpcfiDy9coqZ4WAP N23xF+yxPtKovpgsYpWl9es7f0YASbJ99fvi5UwpA3OpE7xj51SNMUzcA4WrGZiCHtCa cOkvvxuNM/pN/FD7L7mznVgUYudPtN205JFr6V1MtdSU3k6Rj434DcfnTg3j4JKtIg8G QhQBHP0horMwmpp3kewHJ5mv7mL6Sm63aIS9j880UcuPddAIXOeU/jveefi2PeM95F9d 0VBg== Sender: swupdate@googlegroups.com X-Gm-Message-State: AC+VfDz0+tRk9PMyebwOwOzwAgE9mJmALVjlEUsEEfiGcJd1/GZVkIEe 3GujmSFVbzz+ViYFo+I2s6o= X-Google-Smtp-Source: ACHHUZ4OSKj3JE3CCXy/4R/g1pN12LE3jcxowFKiyR/BwFNPNJtSkPdztpXcszTbK+CI9eJ1XtwhWw== X-Received: by 2002:a2e:9c86:0:b0:2a7:653d:1676 with SMTP id x6-20020a2e9c86000000b002a7653d1676mr3498083lji.2.1683894914327; Fri, 12 May 2023 05:35:14 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6512:3285:b0:4f2:71a1:53f1 with SMTP id p5-20020a056512328500b004f271a153f1ls339476lfe.0.-pod-prod-01-eu; Fri, 12 May 2023 05:35:12 -0700 (PDT) X-Received: by 2002:a2e:b04a:0:b0:2ac:6105:c77 with SMTP id d10-20020a2eb04a000000b002ac61050c77mr4823914ljl.2.1683894912842; Fri, 12 May 2023 05:35:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683894912; cv=none; d=google.com; s=arc-20160816; b=AhbOmss5PiVgrqgs0oWkY9wmIeClvuSNGRzR2pLFawLquxCajvOuGR0GhR+LtPPohO IbSMrOoqNLBX/4zR24f0OsEJU97+rHepUUA9gvzh9Gkeed18Auj1XY9HdF/nFfeysl9t QxGIRs7D1c7I8QKGc60vbxkP70obrOr3mowKTPnzqM3beFbt0KwmkhQXKWJo9dBZB6xG DZPlUHvRJVrdGG97n1QRHV57Zduy3psoQCeh6TuaZlZY+VBLw/wubZdtTHLe/lkl8Pzs UPJfbtIE3pKceqA1Z+QgElnbfifweqXTRnSqoXd7K7lDn++jrNUrxhxwESOPrzJgWRoy 5TAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=2AIhWInVBkEczuqqzZUDzPalFsJB4J4rfYeTAWuiguw=; b=yg5lWGfQg778nbBjLBfMKMLwMHYg8/4RqVBQW2UDO5nrM4tdokZPqU8X6hXHpCFPh3 n9vs2q7v4o9pz3bI+hVWUnZq7F7Fuuu5ZdFNevzDIGTUq44ABIz8rnLpx7H2Q0HkSCZg +6Gy8a/PuyDq7UjMjTS187u+v8DJRe+6cq6gpxqDXJgFH1+4U/cxO5ZFOVgywaNGayV6 MxJC/tokZeYNOEPBCV/m2Avg1Kf8vo4Djmpkn/IF59ZH6aL4j1By1Y3tQMIjJVhfFPfa 8M7DOm/MdAUOqm/FVyF8HdPFX2Z8fK2oTo5EbBGKHkujw7Cvc7HCVC9jE5uuWyxODUBh Xjhw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [2001:a60:0:28:0:1:25:1]) by gmr-mx.google.com with ESMTPS id bx43-20020a05651c19ab00b002ac75541fd4si1134049ljb.0.2023.05.12.05.35.12 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 May 2023 05:35:12 -0700 (PDT) Received-SPF: neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by domain of sbabic@denx.de) client-ip=2001:a60:0:28:0:1:25:1; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4QHpBS1CRxz1sBqH; Fri, 12 May 2023 14:35:12 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4QHpBS0z8Kz1qqlS; Fri, 12 May 2023 14:35:12 +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 Ux4P1oa4zWjV; Fri, 12 May 2023 14:35:11 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Fri, 12 May 2023 14:35:11 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 5063745401C1; Fri, 12 May 2023 14:35:11 +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 JrH3zcwasWHp; Fri, 12 May 2023 14:35:09 +0200 (CEST) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.48]) by babic.homelinux.org (Postfix) with ESMTP id D73894541370; Fri, 12 May 2023 14:35:06 +0200 (CEST) From: Stefano Babic <sbabic@denx.de> To: swupdate@googlegroups.com Cc: Stefano Babic <sbabic@denx.de> Subject: [swupdate] [PATCH V2 2/6] Add utility to compare string Date: Fri, 12 May 2023 14:35:00 +0200 Message-Id: <20230512123504.160169-3-sbabic@denx.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230512123504.160169-1-sbabic@denx.de> References: <20230512123504.160169-1-sbabic@denx.de> MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=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 |
Cleanup and include restruct
|
expand
|
diff --git a/include/util.h b/include/util.h index 2a07468..b39b069 100644 --- a/include/util.h +++ b/include/util.h @@ -136,6 +136,8 @@ void notifier_set_color(int level, char *col); } while (0) +#define IS_STR_EQUAL(s,s1) (s && s1 && !strcmp(s,s1)) + #define LG_16 4 #define FROM_HEX(f) from_ascii (f, sizeof f, LG_16) uintmax_t
IS_STR_EQUAL lets to write more simple string comparisons. Signed-off-by: Stefano Babic <sbabic@denx.de> --- include/util.h | 2 ++ 1 file changed, 2 insertions(+)