From 520d24c191941289ae1e86bc372cde4908a9fa35 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 26 Aug 1998 03:06:48 +0000 Subject: use a separate ZERO_ARRAY() macro instead of ZERO_STRUCT() for arrays. This prevents (harmless) warnings from some compilers (This used to be commit c2da46d1d0820a86e7f77506563cfe7f67b08fee) --- source3/include/smb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/include/smb.h') diff --git a/source3/include/smb.h b/source3/include/smb.h index 00c5464251..31e3b645b1 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -1562,6 +1562,7 @@ extern int unix_ERR_code; /* useful macros */ #define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x)) +#define ZERO_ARRAY(x) memset((char *)(x), 0, sizeof(x)) #define SMB_ASSERT(b) ((b)?(void)0: \ (DEBUG(0,("PANIC: assert failed at %s(%d)\n", \ __FILE__, __LINE__)), smb_panic("assert failed"))) -- cgit