[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH] cutils: Use int64_t instead of ssize_t for strt
From: |
Jes Sorensen |
Subject: |
[Qemu-devel] Re: [PATCH] cutils: Use int64_t instead of ssize_t for strtosz() |
Date: |
Mon, 10 Jan 2011 11:33:36 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Thunderbird/3.1.7 |
On 01/10/11 11:29, Stefan Hajnoczi wrote:
> The strtosz() function parses byte count strings and converts K, M, G
> units. The ssize_t type is not appropriate because block devices need
> 64-bit range even on 32-bit hosts. Switch from ssize_t to int64_t.
Hmmm I think this is identical to the patch I posted last week :)
Cheers,
Jes