summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-06-02 23:18:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:05 -0500
commited5e7ff9f184fd36b4344c958f145cc4a4987c71 (patch)
treeac38252c75d1658b45ee7c733a0cdb012b624877 /source3/include
parent503914b2c506dbe7cfd1fa56f93b44860f48e6a3 (diff)
downloadsamba-ed5e7ff9f184fd36b4344c958f145cc4a4987c71.tar.gz
samba-ed5e7ff9f184fd36b4344c958f145cc4a4987c71.tar.bz2
samba-ed5e7ff9f184fd36b4344c958f145cc4a4987c71.zip
r7200: Don't use memset, use SET_STAT_INVALID (has the same effect).
Jeremy. (This used to be commit 0b6f87d5e14da461bd2b1c3a4e6f47a69d2cd1c4)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smb_macros.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h
index d798d4395e..b7e27d2266 100644
--- a/source3/include/smb_macros.h
+++ b/source3/include/smb_macros.h
@@ -143,6 +143,7 @@
#define VALID_STAT(st) ((st).st_nlink != 0)
#define VALID_STAT_OF_DIR(st) (VALID_STAT(st) && S_ISDIR((st).st_mode))
+#define SET_STAT_INVALID(st) ((st).st_nlink = 0)
#ifndef MIN
#define MIN(a,b) ((a)<(b)?(a):(b))