Use memset instead of bzero
[profile/ivi/libxkbcommon.git] / src / XKBcommonint.h
index def7224..41e0a08 100644 (file)
@@ -39,7 +39,7 @@ authorization from the authors.
 #define _XkbTypedCalloc(n,t)    ((t *)calloc((n),sizeof(t)))
 #define _XkbTypedRealloc(o,n,t) \
     ((o)?(t *)realloc((o),(n)*sizeof(t)):_XkbTypedCalloc(n,t))
-#define _XkbClearElems(a,f,l,t) bzero(&(a)[f],((l)-(f)+1)*sizeof(t))
+#define _XkbClearElems(a,f,l,t) memset(&(a)[f], 0, ((l) - (f) + 1) * sizeof(t))
 
 #define _XkbDupString(s)        ((s) ? strdup(s) : NULL)
 #define _XkbStrCaseCmp          strcasecmp