Diff for /src/usr.sbin/timed/timed/cksum.c between versions 1.2 and 1.3

version 1.2, 2003/06/17 04:30:03 version 1.3, 2004/03/13 21:08:38
Line 32 Line 32
  *   *
  * @(#)cksum.c  8.1 (Berkeley) 6/6/93   * @(#)cksum.c  8.1 (Berkeley) 6/6/93
  * $FreeBSD: src/usr.sbin/timed/timed/cksum.c,v 1.3 1999/08/28 01:20:17 peter Exp $   * $FreeBSD: src/usr.sbin/timed/timed/cksum.c,v 1.3 1999/08/28 01:20:17 peter Exp $
 * $DragonFly: src/usr.sbin/timed/timed/cksum.c,v 1.1 2003/06/16 07:38:38 dillon Exp $ * $DragonFly$
  */   */
   
 #include <sys/types.h>  #include <sys/types.h>
Line 49 Line 49
  * worry about carries except at the end.   * worry about carries except at the end.
  */   */
 int  int
in_cksum(addr, len)in_cksum(u_short *addr, int len)
        u_short *addr; 
        int len; 
 {  {
        register int nleft = len;        int nleft = len;
        register u_short *w = addr;        u_short *w = addr;
        register u_short answer;        u_short answer;
        register int sum = 0;        int sum = 0;
   
         /*          /*
          *  Our algorithm is simple, using a 32 bit accumulator (sum),           *  Our algorithm is simple, using a 32 bit accumulator (sum),

Removed from v.1.2  
changed lines
  Added in v.1.3