WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [XEN] Skip over the unit in parse_size_an

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEN] Skip over the unit in parse_size_and_unit() when returning the remainder
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 05 Jan 2007 12:55:41 -0800
Delivery-date: Fri, 05 Jan 2007 12:57:13 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxxxxx>
# Date 1168021056 0
# Node ID 9865145e53eb02ddc2e2792f80bb7d54bc754a65
# Parent  b648a579b0b4ac179c3652f2e5d12b6f7349b756
[XEN] Skip over the unit in parse_size_and_unit() when returning the remainder
of the string.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxxxxx>
---
 xen/common/lib.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r b648a579b0b4 -r 9865145e53eb xen/common/lib.c
--- a/xen/common/lib.c  Fri Jan 05 18:01:20 2007 +0000
+++ b/xen/common/lib.c  Fri Jan 05 18:17:36 2007 +0000
@@ -454,7 +454,7 @@ unsigned long long parse_size_and_unit(c
        case 'K': case 'k':
                ret <<= 10;
        case 'B': case 'b':
-               s++;
+               s1++;
                break;
        default:
                ret <<= 10; /* default to kB */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEN] Skip over the unit in parse_size_and_unit() when returning the remainder, Xen patchbot-unstable <=