From patchwork Tue Oct 23 17:51:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Goffredo Baroncelli X-Patchwork-Id: 1631691 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 45D4640232 for ; Tue, 23 Oct 2012 17:51:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757375Ab2JWRvo (ORCPT ); Tue, 23 Oct 2012 13:51:44 -0400 Received: from mail-ea0-f174.google.com ([209.85.215.174]:52507 "EHLO mail-ea0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757355Ab2JWRvl (ORCPT ); Tue, 23 Oct 2012 13:51:41 -0400 Received: by mail-ea0-f174.google.com with SMTP id c13so1252036eaa.19 for ; Tue, 23 Oct 2012 10:51:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=GORgQr//OhkdY4Z/gNiOYGtZzMkTyMZW8v6eHaZ0rs0=; b=z/b+6cKAH023VZqZ6CaNMHZT6QxPI8ynBlCRsXGjpsvBAYAkqaxLSbPCfmca+jaHRl K/RDahDwq1MoMwUoj5+/efV3Ft4TIdc4pFGRyIVLbuhbvJolz55oebQyBfA5Um8ASy0K 4rHWoCKEjjnI9x3ixuxH2rJZcnIVVxWX0040vgcahyEo0Wf2+ioBFvVJ4WU7Yfdf8CgY HOsYd055QtEdWxCqiTb4p1nTH+UOaQGidN16408yfQup2/ajnsms7F5hMheSB+JEDo9u LyIrQIUuR1L+rsYns6D71hBfeibYjMtmwO2g5F6H87BCn8i3PHYsm06kqHh3RkfQRO+c X6CA== Received: by 10.14.203.132 with SMTP id f4mr18104360eeo.11.1351014700622; Tue, 23 Oct 2012 10:51:40 -0700 (PDT) Received: from venice..bhome (host103-133-static.242-95-b.business.telecomitalia.it. [95.242.133.103]) by mx.google.com with ESMTPS id o47sm21949351eem.11.2012.10.23.10.51.39 (version=SSLv3 cipher=OTHER); Tue, 23 Oct 2012 10:51:40 -0700 (PDT) From: Goffredo Baroncelli To: linux-btrfs@vger.kernel.org Cc: Stefan Behrens , Wang Sheng-Hui , Goffredo Baroncelli Subject: [PATCH 2/5] parse_size(): replace atoll() with strtoull() Date: Tue, 23 Oct 2012 19:51:52 +0200 Message-Id: <1351014715-5727-3-git-send-email-kreijack@inwind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1351014715-5727-1-git-send-email-kreijack@inwind.com> References: <1351014715-5727-1-git-send-email-kreijack@inwind.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org From: Goffredo Baroncelli Replace the function atoll with strtoull() --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index 705be7b..732c782 100644 --- a/utils.c +++ b/utils.c @@ -1243,6 +1243,6 @@ u64 parse_size(char *s) } s[len - 1] = '\0'; } - return atoll(s) * mult; + return strtoull(s, NULL, 0) * mult; }