direct-io.hg

changeset 13282:9865145e53eb

[XEN] Skip over the unit in parse_size_and_unit() when returning the remainder
of the string.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author Ian Campbell <ian.campbell@xensource.com>
date Fri Jan 05 18:17:36 2007 +0000 (2007-01-05)
parents b648a579b0b4
children 69579f9f1c81
files xen/common/lib.c
line diff
     1.1 --- a/xen/common/lib.c	Fri Jan 05 18:01:20 2007 +0000
     1.2 +++ b/xen/common/lib.c	Fri Jan 05 18:17:36 2007 +0000
     1.3 @@ -454,7 +454,7 @@ unsigned long long parse_size_and_unit(c
     1.4  	case 'K': case 'k':
     1.5  		ret <<= 10;
     1.6  	case 'B': case 'b':
     1.7 -		s++;
     1.8 +		s1++;
     1.9  		break;
    1.10  	default:
    1.11  		ret <<= 10; /* default to kB */