From patchwork Tue Apr 21 04:16:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1273922 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 495qzg4JCgz9sSM for ; Tue, 21 Apr 2020 14:17:51 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=lAPWFVIF; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 495qzg2pn4zDqtl for ; Tue, 21 Apr 2020 14:17:51 +1000 (AEST) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (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 lists.ozlabs.org (Postfix) with ESMTPS id 495qz11SY4zDqsy for ; Tue, 21 Apr 2020 14:17:17 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=lAPWFVIF; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 495qz064gMz9sSW; Tue, 21 Apr 2020 14:17:16 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1587442637; bh=6aJD3nCEqMHdeeOR0lw+ByU7sEaJJrIDzR1hOGNmtFQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lAPWFVIFJfcbgJrBuxBWe8S9CMpVN3B14xT/2bDnd5VeMBEPrvSv0Z17LEHSNzk7y Cpz6pozNMYWyf11AMtslkRVBO2JiWB+f0FGw2aUUxOk3j9c04PTzSsPzoGk/DWEfzK CHYASZkI1eGaZbNsuu/E6AirKk9mVmlrmGvP2puH3z0FJP1mUAMhpboD1g5mtdZkXE baRhs6rA0HHIRNgA4rRiT7qaBdu+d0knl1sRjdY5r6UZeLbsaSx19X0olpSV6pZoec KrtN2T4CBhyjlT3/pDIeoBgMV4gMO4xi5MJOjUTVsINKA6ila58sgUjYjzy6tl0fXF 8dMP/UWq1HoDw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Tue, 21 Apr 2020 14:16:42 +1000 Message-Id: <20200421041655.82856-7-amitay@ozlabs.org> X-Mailer: git-send-email 2.25.3 In-Reply-To: <20200421041655.82856-1-amitay@ozlabs.org> References: <20200421041655.82856-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH v4 06/19] libpdbg: Use const char * for filenames X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs Reviewed-by: Alistair Popple --- libpdbg/dtb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libpdbg/dtb.c b/libpdbg/dtb.c index 70b7962..ef51718 100644 --- a/libpdbg/dtb.c +++ b/libpdbg/dtb.c @@ -234,7 +234,7 @@ static void bmc_target(struct pdbg_dtb *dtb) } /* Opens a dtb at the given path */ -static void mmap_dtb(char *file, bool readonly, struct pdbg_mfile *mfile) +static void mmap_dtb(const char *file, bool readonly, struct pdbg_mfile *mfile) { int fd; void *dtb; @@ -308,7 +308,7 @@ const char *pdbg_get_backend_option(void) struct pdbg_dtb *pdbg_default_dtb(void *system_fdt) { struct pdbg_dtb *dtb = &pdbg_dtb; - char *fdt; + const char *fdt; dtb->backend.fdt = NULL; dtb->system.fdt = system_fdt;