summaryrefslogtreecommitdiffstats
path: root/source/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
commit2908ccd14d1aa4ffb7d09714bae78cebb7eee755 (patch)
treebc544255fa2b4fa9fdc7ecb4348cf79d31cf4067 /source/include
parenta5555bd3b744417674d62d5891e1d5dbe32008ff (diff)
downloadsamba-2908ccd14d1aa4ffb7d09714bae78cebb7eee755.tar.gz
samba-2908ccd14d1aa4ffb7d09714bae78cebb7eee755.tar.xz
samba-2908ccd14d1aa4ffb7d09714bae78cebb7eee755.zip
oops - ZERO_STRUCTP() issues again...
Diffstat (limited to 'source/include')
-rw-r--r--source/include/smb.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/include/smb.h b/source/include/smb.h
index acbd56d81e1..bb055214ec5 100644
--- a/source/include/smb.h
+++ b/source/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 */