projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b427097
)
[XEN] Skip over the unit in parse_size_and_unit() when returning the remainder
author
Ian Campbell
<ian.campbell@xensource.com>
Fri, 5 Jan 2007 18:17:36 +0000
(18:17 +0000)
committer
Ian Campbell
<ian.campbell@xensource.com>
Fri, 5 Jan 2007 18:17:36 +0000
(18:17 +0000)
of the string.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
xen/common/lib.c
patch
|
blob
|
history
diff --git
a/xen/common/lib.c
b/xen/common/lib.c
index c8a90b99a704fdca5035b508f05032c314320292..661f76420dbe81723aaabdf3a72c3784bda67d4c 100644
(file)
--- a/
xen/common/lib.c
+++ b/
xen/common/lib.c
@@
-454,7
+454,7
@@
unsigned long long parse_size_and_unit(const char *s, const char **ps)
case 'K': case 'k':
ret <<= 10;
case 'B': case 'b':
- s++;
+ s
1
++;
break;
default:
ret <<= 10; /* default to kB */