summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/system.c
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>1999-12-16 16:27:12 +0000
committerespie <espie@openbsd.org>1999-12-16 16:27:12 +0000
commit2aa5c5341e06ae5fc0343c1e9d3f097aa45950ed (patch)
treee8a0464bdc975c74a366341896e699d8be088291 /lib/libc/stdlib/system.c
parentregen. (diff)
downloadwireguard-openbsd-2aa5c5341e06ae5fc0343c1e9d3f097aa45950ed.tar.xz
wireguard-openbsd-2aa5c5341e06ae5fc0343c1e9d3f097aa45950ed.zip
Start cleaning up buf.c in earnest.
- Buf_Discard is only used to remove all the bytes in a buffer, replace with Buf_Reset, - buffer values are not read unless accessed first through Buf_GetAll, no need to null-terminate it at every point. - Buf_Expand need not check if the expansion is needed. That's Buf_AddChar and Buf_AddChars responsability (otherwise, Buf_AddChar checks twice) - Buf_Overflow only handles overflow. Adding the character is done in every case anyway.
Diffstat (limited to 'lib/libc/stdlib/system.c')
0 files changed, 0 insertions, 0 deletions