DragonFly BSD
DragonFly commits List (threaded) for 2004-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/kern


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 10 Nov 2004 00:27:54 -0800 (PST)

dillon      2004/11/10 00:27:54 PST

DragonFly src repository

  Modified files:
    sys/kern             kern_synch.c 
  Log:
  The min() and max() macros in sys/libkern.h are typed u_int and thus do not
  do the right things when handed negative numbers.  Use MIN and MAX instead.
  
  This was causing renice -N processes to wrap back around to the worst priority
  instead of MIN()'ing to the best priority.
  
  Revision  Changes    Path
  1.38      +2 -2      src/sys/kern/kern_synch.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_synch.c.diff?r1=1.37&r2=1.38&f=u



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