Message ID | 1474664152-18727-2-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 AA84F6077A for <patchwork-selinux@patchwork.kernel.org>; Fri, 23 Sep 2016 20:56:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9ADC22ADE5 for <patchwork-selinux@patchwork.kernel.org>; Fri, 23 Sep 2016 20:56:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F8592ADE7; Fri, 23 Sep 2016 20:56:27 +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 CA9FD2ADE5 for <patchwork-selinux@patchwork.kernel.org>; Fri, 23 Sep 2016 20:56:26 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.30,383,1470700800"; d="scan'208";a="19519581" IronPort-PHdr: =?us-ascii?q?9a23=3Aaiv6uhDZc60+UU+VfQqkUyQJP3N1i/DPJgcQr6Af?= =?us-ascii?q?oPdwSP7zrsbcNUDSrc9gkEXOFd2CrakV0ayO7Ou5BDdIyK3CmUhKSIZLWR4BhJ?= =?us-ascii?q?detC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBy?= =?us-ascii?q?brysXNWD1YLviKvrpsabSj4LrQL1Wal1IhSyoFeZnegtqqwmFJwMzADUqGBDYe?= =?us-ascii?q?VcyDAgD1uSmxHh+pX4p8Y7oGxtofZpy+psGeW/Jvx5HvRkC2E9PmQ04tD7nQXS?= =?us-ascii?q?RguIoH0HWyMZlQQMSxPJ9znmT5zxtW38reM71y6EeYX8V7EyVTCvx752QQXrky?= =?us-ascii?q?oMKiQ47HCRgct134xBpxf0uB17x4/dZceecuB5dK7HYcgyRGxdU8IXXCtEUdD0?= =?us-ascii?q?VJcGE+dUZbUQlIL6vVZb6ELmCA=3D=3D?= X-IPAS-Result: =?us-ascii?q?A2EQBADDleVX/wHyM5BdGgEBAQECAQEBAQgBAQEBFwEBBAE?= =?us-ascii?q?BCgEBgxABAQEBAR6BU6Y0lEEjh2tMAQEBAQEBAQECAQJbJ4IyBAMTBYIRAgQBA?= =?us-ascii?q?jcUIA4DCQEBFwghCAgDAS0VEQcHCwUYBIgqvTkBCgEBASOIO4ZkAhEBhXoFjjR?= =?us-ascii?q?3ikuPaAKJe4VukGdUhSVSAYUkDxdhgScBAQE?= 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:25 +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 u8NKuOEb007814; Fri, 23 Sep 2016 16:56:24 -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 u8NKu4Re198636 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 u8NKu3v5007774; Fri, 23 Sep 2016 16:56:04 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1A+BABFluVX/yNjr8ZdGgEBAQECAQEBAQgBAQEBgzsBAQEBAR6BU7ZshBOGHgKBZEwBAgEBAQEBAl6FCQIEeRAgMVcHEohLvT0BAQEBAQEEAQEBASOIO4Zkhg4FjjR3ikuPaAKPaZBnVIUlHjQBhSSCLgEBAQ X-IPAS-Result: A1A+BABFluVX/yNjr8ZdGgEBAQECAQEBAQgBAQEBgzsBAQEBAR6BU7ZshBOGHgKBZEwBAgEBAQEBAl6FCQIEeRAgMVcHEohLvT0BAQEBAQEEAQEBASOIO4Zkhg4FjjR3ikuPaAKPaZBnVIUlHjQBhSSCLgEBAQ X-IronPort-AV: E=Sophos;i="5.30,383,1470715200"; d="scan'208";a="5726255" 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=3AfgSPmR1ty9bf9BSCsmDT+DRfVm0co7zxezQtwd8Z?= =?us-ascii?q?segfLPad9pjvdHbS+e9qxAeQG96KsbQc1KGP7vuocFdDyK7JiGoFfp1IWk1Nou?= =?us-ascii?q?QttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIs?= =?us-ascii?q?YL+kQMiK0I/uirv60qaQSj0AvCC6b7J2IUf+hiTqne5Sv7FfLL0swADCuHpCdr?= =?us-ascii?q?ce72ppIVWOg0S0vZ/or9ZLuh5dsPM59sNGTb6yP+FhFeQZX3waNDUu6cnqswTT?= =?us-ascii?q?ZRee7XsbFGMNm1xHBBaBpAr2Rb/toyD6sax7wyDcMsroCfg+QzWk46NmYAb1gT?= =?us-ascii?q?0ELDMy7XvWlt02h6Ve8zy7oBkq3I/QZICcMbx1OLnad94AWXFpX8BNWigHCYS5?= =?us-ascii?q?PNhHNPYIIesN99q1nFAJtxbrQFD0XO4=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0EPBADDleVX/yNjr8ZdGgEBAQECAQEBA?= =?us-ascii?q?QgBAQEBFgEBAQMBAQEJAQEBgxABAQEBAR6BU6Y0kDiEE4YeAoFkTAEBAQEBAQE?= =?us-ascii?q?BAgECWyeCMgQBFQEEghECBHkQIDFXBxKIS705AQEBAQEBBAEBAQEBIog7hmSGD?= =?us-ascii?q?gWONHeKS49oAo9pkGdUhSUeNAGFJG6BQAEBAQ?= X-IPAS-Result: =?us-ascii?q?A0EPBADDleVX/yNjr8ZdGgEBAQECAQEBAQgBAQEBFgEBAQM?= =?us-ascii?q?BAQEJAQEBgxABAQEBAR6BU6Y0kDiEE4YeAoFkTAEBAQEBAQEBAgECWyeCMgQBF?= =?us-ascii?q?QEEghECBHkQIDFXBxKIS705AQEBAQEBBAEBAQEBIog7hmSGDgWONHeKS49oAo9?= =?us-ascii?q?pkGdUhSUeNAGFJG6BQAEBAQ?= X-IronPort-AV: E=Sophos;i="5.30,383,1470700800"; d="scan'208";a="19519558" Received: from fmsmga002-icc.fm.intel.com ([198.175.99.35]) by emsm-gh1-uea11.nsa.gov with ESMTP; 23 Sep 2016 20:56:02 +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="1035363946" 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:01 -0700 From: william.c.roberts@intel.com To: selinux@tycho.nsa.gov, sds@tycho.nsa.gov, brindle@quarksecurity.com Subject: [PATCH 1/3] libsepol: fix unused variable 'size' on mac build Date: Fri, 23 Sep 2016 13:55:50 -0700 Message-Id: <1474664152-18727-2-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/genbools.c b/libsepol/src/genbools.c index c81e848..c1f5405 100644 --- a/libsepol/src/genbools.c +++ b/libsepol/src/genbools.c @@ -68,7 +68,6 @@ static int load_booleans(struct policydb *policydb, const char *path, { FILE *boolf; char *buffer = NULL; - size_t size = 0; char localbools[BUFSIZ]; char name[BUFSIZ]; int val; @@ -87,6 +86,7 @@ static int load_booleans(struct policydb *policydb, const char *path, while(fgets(buffer, 255, boolf) != NULL) { #else + size_t size = 0; while (getline(&buffer, &size, boolf) > 0) { #endif int ret = process_boolean(buffer, name, sizeof(name), &val);