]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use memset() instead of bzero() and memcpy() instead of bcopy(), there
authorPoul-Henning Kamp <phk@FreeBSD.org>
Tue, 17 May 2011 11:04:50 +0000 (11:04 +0000)
committerPoul-Henning Kamp <phk@FreeBSD.org>
Tue, 17 May 2011 11:04:50 +0000 (11:04 +0000)
commit384bf94c48a3d82e88f00737ebf4a68a5d51414e
tree75121849a7ddbde6a5cc74da4fe394bd3da57a75
parentcf7d1a17c23aa891d9cfa04e3e87e0f0795fd0b4
Use memset() instead of bzero() and memcpy() instead of bcopy(), there
is no relevant difference for sbufs, and it increases portability of
the source code.

Split the actual initialization of the sbuf into a separate local
function, so that certain static code checkers can understand
what sbuf_new() does, thus eliminating on silly annoyance of
MISRA compliance testing.

Contributed by: An anonymous company in the last business I
expected sbufs to invade.
sys/kern/subr_sbuf.c