From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 551FB1396D0 for ; Mon, 18 Sep 2017 18:07:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 81FAA1FC005; Mon, 18 Sep 2017 18:07:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 5FDC51FC005 for ; Mon, 18 Sep 2017 18:07:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 73C0333FE2A for ; Mon, 18 Sep 2017 18:07:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 131139084 for ; Mon, 18 Sep 2017 18:07:20 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1505748522.949daeb68b2a39fa1e64f2eb3fa72579f98df09e.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:0.31.x commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/rc-selinux.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 949daeb68b2a39fa1e64f2eb3fa72579f98df09e X-VCS-Branch: 0.31.x Date: Mon, 18 Sep 2017 18:07:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6b9e352e-8886-4465-ae6a-5f6c8a3375b0 X-Archives-Hash: ec47c93e98ad46d468a596925d2e7c2d commit: 949daeb68b2a39fa1e64f2eb3fa72579f98df09e Author: Jason Zaman perfinion com> AuthorDate: Sun Sep 17 15:52:52 2017 +0000 Commit: William Hubbs gentoo org> CommitDate: Mon Sep 18 15:28:42 2017 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=949daeb6 selinux: fix const qualifier warning rc-selinux.c: In function ‘selinux_setup’: rc-selinux.c:361:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] curr_t = context_type_get(curr_con); ^ src/rc/rc-selinux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rc/rc-selinux.c b/src/rc/rc-selinux.c index 514ca5e5..bfaf1556 100644 --- a/src/rc/rc-selinux.c +++ b/src/rc/rc-selinux.c @@ -358,14 +358,13 @@ void selinux_setup(char **argv) goto out; } - curr_t = context_type_get(curr_con); + curr_t = xstrdup(context_type_get(curr_con)); if (!curr_t) { context_free(curr_con); free(curr_context); goto out; } - curr_t = xstrdup(curr_t); /* dont need them anymore so free() now */ context_free(curr_con); free(curr_context);