From patchwork Tue Oct 16 19:20:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 191861 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 4486F2C00A6 for ; Wed, 17 Oct 2012 06:20:58 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TOChF-0002YC-2W; Tue, 16 Oct 2012 19:20:57 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TOChA-0002Ww-Tl for fwts-devel@lists.ubuntu.com; Tue, 16 Oct 2012 19:20:52 +0000 Received: from cpc3-craw6-2-0-cust180.croy.cable.virginmedia.com ([77.100.248.181] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1TOChA-0005lV-Q0 for fwts-devel@lists.ubuntu.com; Tue, 16 Oct 2012 19:20:52 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH 07/11] lib: fwts_checkeuid: constify function arguments where appropriate Date: Tue, 16 Oct 2012 20:20:44 +0100 Message-Id: <1350415248-16965-8-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1350415248-16965-1-git-send-email-colin.king@canonical.com> References: <1350415248-16965-1-git-send-email-colin.king@canonical.com> X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: fwts-devel-bounces@lists.ubuntu.com Errors-To: fwts-devel-bounces@lists.ubuntu.com From: Colin Ian King Signed-off-by: Colin Ian King Acked-by: Keng-Yu Lin Acked-by: Ivan Hu --- src/lib/include/fwts_checkeuid.h | 2 +- src/lib/src/fwts_checkeuid.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/include/fwts_checkeuid.h b/src/lib/include/fwts_checkeuid.h index fb2ce29..3669e39 100644 --- a/src/lib/include/fwts_checkeuid.h +++ b/src/lib/include/fwts_checkeuid.h @@ -22,6 +22,6 @@ #include "fwts_framework.h" -int fwts_check_root_euid(fwts_framework *fw, bool warn); +int fwts_check_root_euid(fwts_framework *fw, const bool warn); #endif diff --git a/src/lib/src/fwts_checkeuid.c b/src/lib/src/fwts_checkeuid.c index da4c32c..756ed81 100644 --- a/src/lib/src/fwts_checkeuid.c +++ b/src/lib/src/fwts_checkeuid.c @@ -28,7 +28,7 @@ * fwts_check_root_euid() * Check if user has privileges to access ports, memory, etc */ -int fwts_check_root_euid(fwts_framework *fw, bool warn) +int fwts_check_root_euid(fwts_framework *fw, const bool warn) { if (geteuid() != 0) { if (warn)