[cifs-utils PATCH 1/8] data_blob: remove need for replace.h

Jeff Layton jlayton at samba.org
Fri Feb 24 14:27:43 UTC 2017


We only need ZERO_STRUCT there.

Signed-off-by: Jeff Layton <jlayton at samba.org>
---
 data_blob.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/data_blob.c b/data_blob.c
index 834d810c9d46..a884f132bcde 100644
--- a/data_blob.c
+++ b/data_blob.c
@@ -20,9 +20,12 @@
 
 #include <string.h>
 
-#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 };
 
 /**
-- 
2.9.3




More information about the samba-technical mailing list