Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jun 2001 14:04:45 -0700 (PDT)
From:      Matt Dillon <dillon@earth.backplane.com>
To:        Mikhail Teterin <mi@aldan.algebra.com>, jlemon@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/netinet tcp_subr.c
Message-ID:  <200106232104.f5NL4j673973@earth.backplane.com>
References:  <200106231912.f5NJCUE01011@aldan.algebra.com> <200106232034.f5NKYwY73776@earth.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
    (note: my original small_bzerol() function in the message before last
    had a bug)

: */
:static __inline void
:small_bzerol(void *s, int bytes)
:{
:    while (bytes > 0) {
:	*(int *)((char *)s + bytes) = 0;
:	bytes -= 4;
:    }
:}

    bzzt.  bytes -= 4 has to go before, not after.

    The one in my proposed kernel function is correct (and better).

						-Matt

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106232104.f5NL4j673973>