mirror of
https://github.com/minio/minio.git
synced 2024-12-25 14:45:54 -05:00
21 lines
362 B
C
21 lines
362 B
C
/* $OpenBSD: explicit_bzero.c,v 1.1 2014/01/22 21:06:45 tedu Exp $ */
|
|
/*
|
|
* Public domain.
|
|
* Written by Ted Unangst
|
|
*/
|
|
|
|
#include <string.h>
|
|
#include "util.h"
|
|
|
|
/*
|
|
* explicit_bzero - don't let the compiler optimize away bzero
|
|
*/
|
|
|
|
static void (* volatile signify_bzero)(void *, size_t) = bzero;
|
|
|
|
void
|
|
explicit_bzero(void *p, size_t n)
|
|
{
|
|
signify_bzero(p, n);
|
|
}
|