Fix two sign comparison mistakes.
authorJeroen Ruigrok/asmodai <asmodai@dragonflybsd.org>
Fri, 23 Jul 2004 07:43:26 +0000 (07:43 +0000)
committerJeroen Ruigrok/asmodai <asmodai@dragonflybsd.org>
Fri, 23 Jul 2004 07:43:26 +0000 (07:43 +0000)
commit0540baf94801625ae4acd7c2c58fcc7fba38c411
tree9da52de9ed7b687cef89933e127ec55a22f1c37b
parentf121bb8270d0ed638bedf138d1de45c1d863d5b3
Fix two sign comparison mistakes.

Synchronises with: FreeBSD v1.15 with the notable exception of making
i an unsigned integer since it need not be negative
and casting nhosts (a size_t and thus unsigned) to
it is just the other way around and throws away half
of the type.  Granted, the chance that you have more
than 2147483647 hosts (if assuming 32 bit) is a bit
much, nonetheless, this is the right way to do it in
my opinion.
usr.bin/ruptime/ruptime.c