summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-11-13 19:03:07 +0000
committerLuke Leighton <lkcl@samba.org>1998-11-13 19:03:07 +0000
commit43a3692e83ff427fd13d1b213eec98c0b0f1d630 (patch)
tree6541f8f9825207b03fc883ff1c13fc4dcb2e5c2e /source3/include
parent60a12574f201fa7459bddfab56595660f49dbbaa (diff)
downloadsamba-43a3692e83ff427fd13d1b213eec98c0b0f1d630.tar.gz
samba-43a3692e83ff427fd13d1b213eec98c0b0f1d630.tar.bz2
samba-43a3692e83ff427fd13d1b213eec98c0b0f1d630.zip
oops - ZERO_STRUCTP() issues again...
(This used to be commit 2908ccd14d1aa4ffb7d09714bae78cebb7eee755)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smb.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index acbd56d81e..bb055214ec 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -1655,10 +1655,7 @@ extern int unix_ERR_code;
#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x))
/* zero a structure given a pointer to the structure */
-#define ZERO_STRUCTP(x) memset((char *)(x), 0, sizeof(*(x))
-
-/* zero a structure given a pointer to the structure */
-#define ZERO_STRUCTPN(x) { if ((x) != NULL) ZERO_STRUCTP(x); }
+#define ZERO_STRUCTP(x) { if ((x) != NULL) memset((char *)(x), 0, sizeof(*(x))); }
/* zero an array - note that sizeof(array) must work - ie. it must not be a
pointer */