From patchwork Thu Sep 29 00:52:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 1684177 Return-Path: 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=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=x/VDNxU6; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MdFGF4Sqbz1yqH for ; Thu, 29 Sep 2022 10:53:09 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4MdFGF3gsdz3c6M for ; Thu, 29 Sep 2022 10:53:09 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=x/VDNxU6; dkim-atps=neutral X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=infradead.org (client-ip=2001:8b0:10b:1234::107; helo=merlin.infradead.org; envelope-from=geoff@infradead.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=x/VDNxU6; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1234::107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4MdFFb43Wzz2xZp for ; Thu, 29 Sep 2022 10:52:35 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Date:Cc:To:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:From:References:In-Reply-To:Message-Id: Sender:Reply-To:Content-ID:Content-Description; bh=XDQgc3s6Ovnp2AxHpQjds7BoSE3UX+Sw8S21BkmSGDw=; b=x/VDNxU6Fnc9ByhWWwDoWchNxQ oD4MomZR738d+0WQP1CsrRIcSmmPpSNVZuu1MqEWY7q3K/sIrMK1k9ZF3CjtC/FDfMkiJc7L8GVT0 LhOSZR6Ji+ucTSUEkQIKK7Jexf10jXYJEnt3cA5/stPXvWz+jpg5kqpkPecZcuR/DPIp3jVHS0urT Bh5E10s3KzzflZk4jCRanroZGZ6Vh0tbaiQBD62BISy1jmMhkWr2uEM3BP7kEKOGPY4QREBMRmA2K 2+EjX46qwFpzk75npn+TR2vW4P8APG6uigo7Lw1eZqRSPDQZKwXtxD2nzApxmnAvcGFZ4TOnKEQSJ +WpKOSfA==; Received: from geoff by merlin.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1odhmx-0061Xy-EX; Thu, 29 Sep 2022 00:52:31 +0000 Message-Id: <452424632f165f07e25aaf549099d1d2e15d4eb4.1664412375.git.geoff@infradead.org> In-Reply-To: References: From: Geoff Levand Patch-Date: Wed, 28 Sep 2022 21:01:19 -0700 Subject: [PATCH v1 5/5] Fix build warnings. MIME-Version: 1.0 To: Jeremy Kerr Date: Thu, 29 Sep 2022 00:52:31 +0000 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: petitboot@lists.ozlabs.org Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" Fixes build warnings like these: warning: implicit declaration of function ‘memmem’ warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast Signed-off-by: Geoff Levand --- discover/paths.c | 2 ++ discover/pxe-parser.c | 4 +++- ui/ncurses/nc-plugin.c | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/discover/paths.c b/discover/paths.c index 3c43bf6..19674bb 100644 --- a/discover/paths.c +++ b/discover/paths.c @@ -2,6 +2,8 @@ #include "config.h" #endif +#define _GNU_SOURCE + #include #include #include diff --git a/discover/pxe-parser.c b/discover/pxe-parser.c index 035794c..2b10771 100644 --- a/discover/pxe-parser.c +++ b/discover/pxe-parser.c @@ -1,7 +1,9 @@ - #if defined(HAVE_CONFIG_H) #include "config.h" #endif + +#define _GNU_SOURCE + #include #include diff --git a/ui/ncurses/nc-plugin.c b/ui/ncurses/nc-plugin.c index f897cc8..1152bf3 100644 --- a/ui/ncurses/nc-plugin.c +++ b/ui/ncurses/nc-plugin.c @@ -20,6 +20,7 @@ #endif #include +#include #include #include