From 2e5664d2df02a902300f8f67b4eefe0309bde5b9 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 24 Mar 2017 10:05:53 +0000 Subject: Update imsg*.[ch] from OpenBSD, add some compat bits it needs and remove some bits it doesn't. --- compat/explicit_bzero.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 compat/explicit_bzero.c (limited to 'compat/explicit_bzero.c') 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 + +#include "compat.h" + +void +explicit_bzero(void *buf, size_t len) +{ + memset(buf, 0, len); +} -- cgit