cvs commit: src/usr.bin/ruptime ruptime.c

Jeroen Ruigrok/asmodai asmodai at crater.dragonflybsd.org
Fri Jul 23 00:43:35 PDT 2004


asmodai     2004/07/23 00:43:26 PDT

DragonFly src repository

  Modified files:
    usr.bin/ruptime      ruptime.c 
  Log:
  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.
  
  Revision  Changes    Path
  1.5       +2 -1      src/usr.bin/ruptime/ruptime.c


http://www.dragonflybsd.org/cvsweb/src/usr.bin/ruptime/ruptime.c.diff?r1=1.4&r2=1.5&f=u





More information about the Commits mailing list