summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-08-21 09:43:21 +0000
committerAndrew Tridgell <tridge@samba.org>1998-08-21 09:43:21 +0000
commitf323af8fce54cd5d51c848aa7ea7be4dd3538f2e (patch)
treea4cb3fc05f93b3cbb124c9fc0c2943c85af82bb6
parent749ec1e0a79c5836bba0fc0213576ed79ef761d5 (diff)
downloadsamba-f323af8fce54cd5d51c848aa7ea7be4dd3538f2e.tar.gz
added a macro ZERO_STRUCT() which is useful for initialising
structures declared on the stack.
-rw-r--r--source/include/smb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/include/smb.h b/source/include/smb.h
index e88737f0464..9d6c8d7e295 100644
--- a/source/include/smb.h
+++ b/source/include/smb.h
@@ -1563,6 +1563,9 @@ extern int unix_ERR_code;
#define CMD_REPLY 0x8000
+/* useful macros */
+#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x))
+
#endif /* _SMB_H */
#include "ntdomain.h"