From 912cbe49114392bd7c375c4c37698d406eb0660e Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Thu, 23 Feb 2017 18:49:59 -0500 Subject: data_blob: remove need for replace.h We only need ZERO_STRUCT there. Signed-off-by: Jeff Layton --- data_blob.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data_blob.c b/data_blob.c index 834d810..a884f13 100644 --- a/data_blob.c +++ b/data_blob.c @@ -20,9 +20,12 @@ #include -#include "replace.h" #include "data_blob.h" +#ifndef ZERO_STRUCT +#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x)) +#endif + const DATA_BLOB data_blob_null = { NULL, 0 }; /** -- cgit v1.2.3