changeset 1568:119a459b00d0

avoid volatile cast warning
author Matt Johnston <matt@ucc.asn.au>
date Thu, 01 Mar 2018 23:46:07 +0800
parents 2799a1d55b59
children c42e8ff42bd1
files dbhelpers.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dbhelpers.c	Thu Mar 01 22:58:39 2018 +0800
+++ b/dbhelpers.c	Thu Mar 01 23:46:07 2018 +0800
@@ -10,7 +10,7 @@
 	explicit_bzero(data, len);
 #else
 	volatile void *p = data;
-    memset(p, 0x0, len);
+    memset((void*)p, 0x0, len);
 #endif
 }