From patchwork Mon Oct 22 20:17:45 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Goffredo Baroncelli X-Patchwork-Id: 1627761 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 00284DFB79 for ; Mon, 22 Oct 2012 20:17:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756153Ab2JVURY (ORCPT ); Mon, 22 Oct 2012 16:17:24 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:64974 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753331Ab2JVURW (ORCPT ); Mon, 22 Oct 2012 16:17:22 -0400 Received: by mail-bk0-f46.google.com with SMTP id jk13so1245985bkc.19 for ; Mon, 22 Oct 2012 13:17:21 -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=W71mokz+/9VIdH7wdXNgojc9OzKcq84uTuiduL65IkJSJ4/TzDVvlBSVHnCPEXtDpc kEYXVsfQlzceIHB6vFB6Itc2GywcKhiDR+M6MkjGHtFYS2ASP8EDGb4Y1qQVkSmV9mDf Dg6b3VJQpjlSTnL46IVBqeDgaLhuQCz52gXDQeyU9xB9/muCcXcnPDmUdbA6XQrGdKxy AwsVgqEFuYgibkefQIc4r74UFD+3e5CYInrqSY9cz08m/7lLaCK8a1RmWUDAjHaX/yJ5 9K7xVPHeKqGN+N47wJkHsFBPBB8GbsP8PGuMhRSddTxNyKNNpJ7stCaHPF9Y6x4aAdsm r5mQ== Received: by 10.204.4.129 with SMTP id 1mr3129283bkr.58.1350937041793; Mon, 22 Oct 2012 13:17:21 -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 x13sm4560199bkv.16.2012.10.22.13.17.20 (version=SSLv3 cipher=OTHER); Mon, 22 Oct 2012 13:17:21 -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: Mon, 22 Oct 2012 22:17:45 +0200 Message-Id: <1350937068-10080-3-git-send-email-kreijack@inwind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1350937068-10080-1-git-send-email-kreijack@inwind.com> References: <1350937068-10080-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; }