From patchwork Wed Jun 15 08:29:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Reber X-Patchwork-Id: 636160 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rVR1h0PPVz9s2k for ; Thu, 16 Jun 2016 11:41:28 +1000 (AEST) Received: from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3rVR1g6jnMzDqln for ; Thu, 16 Jun 2016 11:41:27 +1000 (AEST) X-Original-To: slof@lists.ozlabs.org Delivered-To: slof@lists.ozlabs.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3rV0FX2n94zDqjf for ; Wed, 15 Jun 2016 18:35:12 +1000 (AEST) Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B519A64080; Wed, 15 Jun 2016 08:35:09 +0000 (UTC) Received: from dcbz.localdomain (ovpn-116-49.ams2.redhat.com [10.36.116.49]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u5F8YPMA023485; Wed, 15 Jun 2016 04:35:08 -0400 From: Adrian Reber To: Alexey Kardashevskiy Date: Wed, 15 Jun 2016 10:29:51 +0200 Message-Id: <1465979400-2964-5-git-send-email-adrian@lisas.de> In-Reply-To: <1465979400-2964-1-git-send-email-adrian@lisas.de> References: <1465979400-2964-1-git-send-email-adrian@lisas.de> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 15 Jun 2016 08:35:09 +0000 (UTC) X-Mailman-Approved-At: Thu, 16 Jun 2016 11:41:14 +1000 Subject: [SLOF] [PATCH 04/13] tools: fixed compiler warnings X-BeenThere: slof@lists.ozlabs.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Patches for https://github.com/aik/SLOF" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , slof@lists.ozlabs.org, Adrian Reber MIME-Version: 1.0 Errors-To: slof-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "SLOF" (cherry picked from commit e1e52adb54d91f19167ac57cf77bd5e42f338f07) Cherry picked from https://lisas.de/~adrian/slof/slof.git/ Signed-off-by: Adrian Reber --- tools/sloffs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/sloffs.c b/tools/sloffs.c index 9abe9e7..8d40e49 100644 --- a/tools/sloffs.c +++ b/tools/sloffs.c @@ -66,9 +66,9 @@ sloffs_list(const void *data) { struct sloffs *sloffs = (struct sloffs *)data; const char *name_header = "File Name"; - int i; - int max; - int line; + unsigned int i; + unsigned int max; + unsigned int line; /* find largest name */ max = strlen(name_header);;