From patchwork Tue Jul 27 19:37:07 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 114605 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6RJb9YU011308 for ; Tue, 27 Jul 2010 19:37:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751801Ab0G0ThL (ORCPT ); Tue, 27 Jul 2010 15:37:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1678 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751759Ab0G0ThK (ORCPT ); Tue, 27 Jul 2010 15:37:10 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o6RJbAjE022146 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 27 Jul 2010 15:37:10 -0400 Received: from tlielax.poochiereds.net (vpn-9-88.rdu.redhat.com [10.11.9.88]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o6RJb7wG024873 for ; Tue, 27 Jul 2010 15:37:09 -0400 From: Jeff Layton To: linux-cifs@vger.kernel.org Subject: [PATCH 4/4] data_blob: change for loop indices to a unsigned int Date: Tue, 27 Jul 2010 15:37:07 -0400 Message-Id: <1280259427-14617-5-git-send-email-jlayton@samba.org> In-Reply-To: <1280259427-14617-1-git-send-email-jlayton@samba.org> References: <1280259427-14617-1-git-send-email-jlayton@samba.org> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 27 Jul 2010 19:37:11 +0000 (UTC) diff --git a/data_blob.c b/data_blob.c index 2384661..16c78ce 100644 --- a/data_blob.c +++ b/data_blob.c @@ -141,7 +141,7 @@ print the data_blob as hex string **/ _PUBLIC_ char *data_blob_hex_string_lower(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob) { - int i; + unsigned int i; char *hex_string; hex_string = talloc_array(mem_ctx, char, (blob->length*2)+1); @@ -161,7 +161,7 @@ _PUBLIC_ char *data_blob_hex_string_lower(TALLOC_CTX *mem_ctx, const DATA_BLOB * _PUBLIC_ char *data_blob_hex_string_upper(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob) { - int i; + unsigned int i; char *hex_string; hex_string = talloc_array(mem_ctx, char, (blob->length*2)+1);