diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-03-24 10:05:53 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-03-24 10:05:53 +0000 |
commit | 2e5664d2df02a902300f8f67b4eefe0309bde5b9 (patch) | |
tree | 0696b121ca98ddf1f011bd307040634f9464d096 /compat/explicit_bzero.c | |
parent | e87d808594e48a4c80d201d07fb86fbb9548409e (diff) | |
download | rtmux-2e5664d2df02a902300f8f67b4eefe0309bde5b9.tar.gz rtmux-2e5664d2df02a902300f8f67b4eefe0309bde5b9.tar.bz2 rtmux-2e5664d2df02a902300f8f67b4eefe0309bde5b9.zip |
Update imsg*.[ch] from OpenBSD, add some compat bits it needs and remove some
bits it doesn't.
Diffstat (limited to 'compat/explicit_bzero.c')
-rw-r--r-- | compat/explicit_bzero.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/compat/explicit_bzero.c b/compat/explicit_bzero.c new file mode 100644 index 00000000..e8bc5b36 --- /dev/null +++ b/compat/explicit_bzero.c @@ -0,0 +1,15 @@ +/* $OpenBSD: explicit_bzero.c,v 1.4 2015/08/31 02:53:57 guenther Exp $ */ +/* + * Public domain. + * Written by Matthew Dempsky. + */ + +#include <string.h> + +#include "compat.h" + +void +explicit_bzero(void *buf, size_t len) +{ + memset(buf, 0, len); +} |