Hi,

On Thu, Mar 29, 2012 at 11:16:39AM +0200, Alon Bar-Lev wrote:
> Use limits.h for maximum value.
> 
> Signed-off-by: Alon Bar-Lev <alon.bar...@gmail.com>

I like this approach - it is a maximum value, so UINT_MAX is making this
obvious.

ACK.

There is a similar bit of code in the win32 section, in 
get_default_gateway_row():

get_default_gateway_row (const MIB_IPFORWARDTABLE *routes)
{
  struct gc_arena gc = gc_new ();
  DWORD lowest_metric = ~0;

... which might also be a candidate for this change.  As I'm not sure
whether UINT_MAX is appropriate for a DWORD, I'm not proposing anything
particular for this occurance.

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             g...@greenie.muc.de
fax: +49-89-35655025                        g...@net.informatik.tu-muenchen.de

Attachment: pgpMXQerHkc5x.pgp
Description: PGP signature

Reply via email to