[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ports_create_port() with bogus size?
From: |
Carl Fredrik Hammar |
Subject: |
Re: ports_create_port() with bogus size? |
Date: |
Tue, 13 Apr 2010 12:43:01 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Hello,
On Mon, Apr 12, 2010 at 01:45:50PM +0200, olafBuddenhagen@gmx.net wrote:
>
> (I guess it *might* make sense to special-case a "0" size, if the caller
> simply
> is not interested in any additional data -- though I'm not sure that's ever
> useful. But other cases are definitely bogus.)
It's not used like this anywhere in the Hurd. I made a quick survey
and all callers pass the result of a sizeof expression or some minor
variation, even if only sizeof(struct port_info). So there is no reason
not to remove this ``feature''.
Regards,
Fredrik