In message <20120618062912.61088c11.t...@tackymt.homeip.net>, Taku YAMAMOTO wri tes: >On Sun, 17 Jun 2012 21:02:48 +0000 (UTC) >Poul-Henning Kamp <p...@freebsd.org> wrote: > >> Author: phk >> Date: Sun Jun 17 21:02:48 2012 >> New Revision: 237203 >> URL: http://svn.freebsd.org/changeset/base/237203 >> + >> +static __inline void >> +copyw(uint16_t *src, uint16_t *dst, size_t size) >> +{ >> + while (size--) >> + *dst++ = *src++; >> +} > >Does this end up with copying 2*size bytes instead of size bytes?
Indeed it did. Thanks for spotting my mistake. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"