svn commit: r328218 - in head/sys: amd64/amd64 arm/xscale/ixp425 arm64/arm64 cam cam/ctl compat/ndis dev/aacraid dev/advansys dev/ath dev/beri/virtio dev/bnxt dev/bwn dev/ciss dev/cxgbe/crypto dev/...

Conrad Meyer cem at freebsd.org
Wed Jan 24 19:25:31 UTC 2018


On Wed, Jan 24, 2018 at 10:44 AM, Pedro Giffuni <pfg at freebsd.org> wrote:
> ...
> On 24/01/2018 13:30, Conrad Meyer wrote:
>>
>> ...
>> size_t can handle 10GB, but u_long can't.
>> This whole argument hinges upon incorrect assumption that size_t is
>> larger than u_long.
>
>
> Hmm...
>
> Lets just make it "unsigned long" to be consistent with malloc(9) and avoid
> confusion?

The opposite, I think -- change malloc(9) and realloc*(9) to size_t to
be more consistent with the C standard and malloc(3).

Best,
Conrad


More information about the svn-src-head mailing list