Message ID | 1474664152-18727-3-git-send-email-william.c.roberts@intel.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <selinux-bounces@tycho.nsa.gov> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DDB676077A for <patchwork-selinux@patchwork.kernel.org>; Fri, 23 Sep 2016 20:56:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE85A2ADE5 for <patchwork-selinux@patchwork.kernel.org>; Fri, 23 Sep 2016 20:56:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C36FD2ADE7; Fri, 23 Sep 2016 20:56:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from emsm-gh1-uea11.nsa.gov (smtp.nsa.gov [8.44.101.9]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 30C092ADE5 for <patchwork-selinux@patchwork.kernel.org>; Fri, 23 Sep 2016 20:56:29 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.30,383,1470700800"; d="scan'208";a="19519590" IronPort-PHdr: =?us-ascii?q?9a23=3AwCDYHxIg8p/v1VvS3dmcpTZWNBhigK39O0sv0rFi?= =?us-ascii?q?tYgUIvXxwZ3uMQTl6Ol3ixeRBMOAuqgC07Wd6v27EUU7or+5+EgYd5JNUxJXwe?= =?us-ascii?q?43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6anHS+4HYoFwnlMkIt?= =?us-ascii?q?f6KuS9SU15v8jr3ps7ToICxwzAKnZr1zKBjk5S7wjeIxxbVYF6Aq1xHSqWFJce?= =?us-ascii?q?kFjUlhJFaUggqurpzopM0rzj5U884F24YAFPyiPvdwcbsNFzkiMmYo9OX3pBLD?= =?us-ascii?q?Sk2J/XJaXWII1lJTDxPt8ADxXpC3tDDz8OV6xm3SN9f3S7wwVBy78q5xSwTlgz?= =?us-ascii?q?odNiIotmrQj59elqVe9Q2goxh+youSa8ePM/BzZL/GVdIcWWdFGM1WUn8SSrig?= =?us-ascii?q?ZpcCWrJSdd1TqJPw8h5X9RY=3D?= X-IPAS-Result: =?us-ascii?q?A2HCBADDleVX/wHyM5BdGwEBAQMBAQEJAQEBFwEBBAEBCgE?= =?us-ascii?q?BgxABAQEBAR6BU6Y0lEEjh2tMAQEBAQEBAQECAQJbJ4IyBAMTBYIRAgQBAjcUI?= =?us-ascii?q?A4DCQEBFwghCAgDAS0VEQcHCwUYBIgqvTkMASSIO4ZkAhEBhXoFjyuKS49oAol?= =?us-ascii?q?7hW6QZ1SFJVIBhSQPF2GBJwEBAQ?= Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by emsm-gh1-uea11.nsa.gov with ESMTP; 23 Sep 2016 20:56:27 +0000 Received: from prometheus.infosec.tycho.ncsc.mil (prometheus [192.168.25.40]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id u8NKuR4b007846; Fri, 23 Sep 2016 16:56:27 -0400 Received: from tarius.tycho.ncsc.mil (tarius.infosec.tycho.ncsc.mil [144.51.242.1]) by prometheus.infosec.tycho.ncsc.mil (8.15.2/8.15.2) with ESMTP id u8NKu46N198639 for <selinux@prometheus.infosec.tycho.ncsc.mil>; Fri, 23 Sep 2016 16:56:04 -0400 Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id u8NKu3v6007774; Fri, 23 Sep 2016 16:56:04 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1A+BABFluVX/yNjr8ZdGgEBAQECAQEBAQgBAQEBgzsBAQEBAR6BU7ZshBOGHgKBZEwBAgEBAQEBAl6FCQIEeRAgMVcHEohLvT0BAQEBBgIBJIg7hmSGDgWPK4pLj2gCj2mQZ1SFJR40AYUkgi4BAQE X-IPAS-Result: A1A+BABFluVX/yNjr8ZdGgEBAQECAQEBAQgBAQEBgzsBAQEBAR6BU7ZshBOGHgKBZEwBAgEBAQEBAl6FCQIEeRAgMVcHEohLvT0BAQEBBgIBJIg7hmSGDgWPK4pLj2gCj2mQZ1SFJR40AYUkgi4BAQE X-IronPort-AV: E=Sophos;i="5.30,383,1470715200"; d="scan'208";a="5726256" Received: from emsm-gh1-uea11.corp.nsa.gov (HELO emsm-gh1-uea11.nsa.gov) ([10.208.41.37]) by goalie.tycho.ncsc.mil with ESMTP; 23 Sep 2016 16:56:03 -0400 IronPort-PHdr: =?us-ascii?q?9a23=3A8bvMIhU8uBikAAZHxI+NdX7uKr3V8LGtZVwlr6E/?= =?us-ascii?q?grcLSJyIuqrYZh2Bt8tkgFKBZ4jH8fUM07OQ6PG6HzRfqs/c6zgrS99lb1c9k8?= =?us-ascii?q?IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUiv2OQc9?= =?us-ascii?q?HOnpAIma153xjLHovcWMKFwV33KUWvBbFF2OtwLft80b08NJC50a7V/3mEZOYP?= =?us-ascii?q?lc3mhyJFiezF7W78a0+4N/oWwL46pyv+YJa6jxfrw5QLpEF3xmdjltvIy4/SXE?= =?us-ascii?q?GBCC4noaT3U+jgtDAw+D6grzGJj2rG+yreZm8DWLNs3xC7YvUHKt6LkvABXyiS?= =?us-ascii?q?ELMzMR6XzekM9rgalGuhO9tlp0xIuHTpuSMa9hf6fZfNofA2EHRMFbWjZdGau9?= =?us-ascii?q?aZcCC6wKOuML/MHGu1ISoE7mVkGXD+T1x2oN3yeu0A=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0EQBADDleVX/yNjr8ZdGgEBAQECAQEBA?= =?us-ascii?q?QgBAQEBFwEBBAEBCgEBgxABAQEBAR6BU6Y0kDiEE4YeAoFkTAEBAQEBAQEBAgE?= =?us-ascii?q?CWyeCMgQBFQEEghECBHkQIDFXBxKIS705AQEBAQYBAQEBI4g7hmSGDgWPK4pLj?= =?us-ascii?q?2gCj2mQZ1SFJR40AYUkboFAAQEB?= X-IPAS-Result: =?us-ascii?q?A0EQBADDleVX/yNjr8ZdGgEBAQECAQEBAQgBAQEBFwEBBAE?= =?us-ascii?q?BCgEBgxABAQEBAR6BU6Y0kDiEE4YeAoFkTAEBAQEBAQEBAgECWyeCMgQBFQEEg?= =?us-ascii?q?hECBHkQIDFXBxKIS705AQEBAQYBAQEBI4g7hmSGDgWPK4pLj2gCj2mQZ1SFJR4?= =?us-ascii?q?0AYUkboFAAQEB?= X-IronPort-AV: E=Sophos;i="5.30,383,1470700800"; d="scan'208";a="19519559" Received: from fmsmga002-icc.fm.intel.com ([198.175.99.35]) by emsm-gh1-uea11.nsa.gov with ESMTP; 23 Sep 2016 20:56:03 +0000 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga002-icc.fm.intel.com with ESMTP; 23 Sep 2016 13:56:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.30,383,1470726000"; d="scan'208"; a="1035363952" Received: from psethi-mobl11.amr.corp.intel.com (HELO wcrobert-MOBL1.amr.corp.intel.com) ([10.254.124.71]) by orsmga001.jf.intel.com with ESMTP; 23 Sep 2016 13:56:02 -0700 From: william.c.roberts@intel.com To: selinux@tycho.nsa.gov, sds@tycho.nsa.gov, brindle@quarksecurity.com Subject: [PATCH 2/3] libsepol: fix unused variable 'len' on mac build Date: Fri, 23 Sep 2016 13:55:51 -0700 Message-Id: <1474664152-18727-3-git-send-email-william.c.roberts@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1474664152-18727-1-git-send-email-william.c.roberts@intel.com> References: <1474664152-18727-1-git-send-email-william.c.roberts@intel.com> X-BeenThere: selinux@tycho.nsa.gov X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" <selinux.tycho.nsa.gov> List-Post: <mailto:selinux@tycho.nsa.gov> List-Help: <mailto:selinux-request@tycho.nsa.gov?subject=help> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" <selinux-bounces@tycho.nsa.gov> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/libsepol/src/genusers.c b/libsepol/src/genusers.c index 0b98a76..57a9a2e 100644 --- a/libsepol/src/genusers.c +++ b/libsepol/src/genusers.c @@ -36,7 +36,6 @@ static int load_users(struct policydb *policydb, const char *path) { FILE *fp; char *buffer = NULL, *p, *q, oldc; - size_t len = 0; ssize_t nread; unsigned lineno = 0, islist = 0, bit; user_datum_t *usrdatum; @@ -55,6 +54,7 @@ static int load_users(struct policydb *policydb, const char *path) while(fgets(buffer, 255, fp) != NULL) { #else + size_t len = 0; __fsetlocking(fp, FSETLOCKING_BYCALLER); while ((nread = getline(&buffer, &len, fp)) > 0) { #endif