From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <eudev+bounces-42-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id D72A4139083
	for <garchives@archives.gentoo.org>; Sat,  2 Dec 2017 17:25:08 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 46DEAE0E7A;
	Sat,  2 Dec 2017 17:25:08 +0000 (UTC)
Received: from mail-lf0-x244.google.com (mail-lf0-x244.google.com [IPv6:2a00:1450:4010:c07::244])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id E8163E0E7A
	for <eudev@lists.gentoo.org>; Sat,  2 Dec 2017 17:25:07 +0000 (UTC)
Received: by mail-lf0-x244.google.com with SMTP id x20so14939417lff.1
        for <eudev@lists.gentoo.org>; Sat, 02 Dec 2017 09:25:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=from:to:cc:subject:date:message-id:mime-version
         :content-transfer-encoding;
        bh=Gwkff+3qB7iE7yuMwKnOirS3U3BSAHsoAnZDiLDTMYk=;
        b=U5NWMGWT6Kpm0fucIQwF65lrP7qoN/4Ky4oKNlWI96/waOtIpMVqf7ZIPPC0kcu/mM
         tfMC1UExAOvFGKWG0oryE/S8sVgiGSlE7mZTFwVu7wQXC8afOkThnH1h332hMkTO47zI
         sNr9uWBKD2ri4U0WDSGB+w/48TqLwe53PN0Nr7xNWeSqP0yNcF6ZwS1VYfPAJu+5T+2o
         yvzEwnR9gdTDugc3e2rxUiEnOkISyWmw0akRYiVR8FMozxDaXa7ndGIO/q2YYiWRr7yx
         Lt77emtXj1QzR96/fsDEgViMsWcpN1j/rGNfDAJMMwkA9h8GvyQ872Bj/UVjlQbJSmt7
         at6g==
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:mime-version
         :content-transfer-encoding;
        bh=Gwkff+3qB7iE7yuMwKnOirS3U3BSAHsoAnZDiLDTMYk=;
        b=WyTzMW5cTgXFQ6AZhZixhwkMzZ59/QpnbcmQrUnui0jeMtH9O3lOBVD6zowq/k5HxC
         QU9BGB75+E3ZD+fgtt3kjzs99em7B1Zee+q0cff6sR1ng6MtOGd3mRhrFtt2mENUng/k
         bdUwwKoUJfvVeuSrtkZVXqid2GxAXGqjIXUu66PhCJXHSf6sMbU9KQd7v3ygiwCaqFxb
         N0+fw/wLqOtwiNQZ2tQrFSFSLxObkDhyTE//llQ1RiA/BWgoKPyZJd71rJFxIh2HoIQv
         eEPY/UhWQ2RCW6pfHB2vOvZCt30lREdXW2EwP+YHF44Jbhj2FGFepBhXWcBYUY6dLx70
         7Mvg==
X-Gm-Message-State: AJaThX6kCuu8DfWN6cddjFb/JR0rQAGSVttdRk3L9xPKPiQw/8Jc8eiz
	wEb4QT0Zur9JsiTC4zRZG0uqyg==
X-Google-Smtp-Source: AGs4zMYp3NAjNSWBi/WRDMRCRr8XKaPflXuB32oa8hxjT9Mp4Wj2PR88oahhE4edRxiH3AGMEuTEaQ==
X-Received: by 10.46.41.68 with SMTP id u65mr7293004lje.47.1512235506182;
        Sat, 02 Dec 2017 09:25:06 -0800 (PST)
Received: from localhost.localdomain (c-2ec2620a-74736162.cust.telenor.se. [46.194.98.10])
        by smtp.gmail.com with ESMTPSA id p25sm1624618lfg.49.2017.12.02.09.25.04
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 02 Dec 2017 09:25:05 -0800 (PST)
From: Marcus Folkesson <marcus.folkesson@gmail.com>
To: eudev@lists.gentoo.org
Cc: marcus.folkesson@gmail.com
Subject: [eudev] [PATCH] util.c: cleanup warnings
Date: Sat,  2 Dec 2017 18:24:52 +0100
Message-Id: <20171202172452.4519-1-marcus.folkesson@gmail.com>
X-Mailer: git-send-email 2.15.0
Precedence: bulk
List-Post: <mailto:eudev@lists.gentoo.org>
List-Help: <mailto:eudev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:eudev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:eudev+subscribe@lists.gentoo.org>
List-Id: eudev mailing list <eudev.gentoo.org>
X-BeenThere: eudev@gentoo.org
X-BeenThere: eudev@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Archives-Salt: d2775366-bbb6-4f11-8190-755b31a73bea
X-Archives-Hash: b9766429aca0986b80891a56405c8358

Resolve warning:
util.c:1730:23: warning: passing argument 1 of ‘__xpg_basename’ discards
‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
---
 src/shared/util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/util.c b/src/shared/util.c
index ac69ae80e..9e36050a0 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -1726,7 +1726,7 @@ int tempfn_xxxxxx(const char *p, char **ret) {
          *         /foo/bar/.#waldoXXXXXX
          */
 
-        fn = basename(p);
+        fn = basename((char*)p);
         if (!filename_is_valid(fn))
                 return -EINVAL;
 
-- 
2.15.0