view dbhelpers.c @ 1877:33363a68784d

use option -q for suppression remote banner output, pass option also for proxy command
author HansH111 <hans@atbas.org>
date Sun, 13 Mar 2022 14:20:02 +0000
parents e75dab5bec71
children
line wrap: on
line source

#include "dbhelpers.h"
#include "includes.h"

/* Erase data */
void m_burn(void *data, unsigned int len) {

#if defined(HAVE_MEMSET_S)
	memset_s(data, len, 0x0, len);
#elif defined(HAVE_EXPLICIT_BZERO)
	explicit_bzero(data, len);
#else
	/* This must be volatile to avoid compiler optimisation */
	volatile void *p = data;
	memset((void*)p, 0x0, len);
#endif
}