DragonFly BSD
DragonFly submit List (threaded) for 2005-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: A few WARNS6 cleanups


From: Peter Schuller <peter.schuller@xxxxxxxxxxxx>
Date: Sun, 2 Jan 2005 12:00:52 +0100

> > iostat: minor changes required
> 
> Committed, with a minor change: the extra function doesn't seem to be
> necessary, the parameter can just be marked as unused.  Thanks!

Ok. The reason I added it was that I felt it was extremely ugly to have
phdr() be called with a 'dummy' argument in the rest of the code.

> This one also looks good, but since it's more involved, I'll play with
> it a bit more before committing it.  I suspect a lot of the
> signed/unsigned things can be resolved without adding casts, by making
> the loop variables unsigned, since they usually range only from 0 to
> some positive integer anyway.

I also realized I accidentally left a comment that was meant to be
temporary (//CLEANUP....).

Anyways. Will be a bit more agressive in the future instead of just adding
casts. The idea was to be conservative in that the reason for the original
choice for the size and/or signedness of a variable may be important but not
necessarily readily apparant. So addings casts felt less intrusive. In
hindsight that was probably not a good idea.

Thanks,

-- 
/ Peter Schuller, InfiDyne Technologies HB

PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller@xxxxxxxxxxxx>'
Key retrieval: Send an E-Mail to getpgpkey@xxxxxxxxx
E-Mail: peter.schuller@xxxxxxxxxxxx Web: http://www.scode.org




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]