summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2000-09-26 14:48:52 +0000
committerHerb Lewis <herb@samba.org>2000-09-26 14:48:52 +0000
commitad81f44cdb77aa952db6f11b6e1e12ded616302d (patch)
tree3a79ddded3aa11a6245511e8ab498f05e1bbc69d
parent56917236a0414a03fb4ec193243c5de123bd3aa5 (diff)
downloadsamba-ad81f44cdb77aa952db6f11b6e1e12ded616302d.tar.gz
samba-ad81f44cdb77aa952db6f11b6e1e12ded616302d.tar.bz2
samba-ad81f44cdb77aa952db6f11b6e1e12ded616302d.zip
fixed IRIX compiller error message
(This used to be commit 908da12d5f24ea076db6627ef0d4407e1cdcd014)
-rw-r--r--source3/include/smb_macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h
index 9fe7f26cb3..fe0d15149b 100644
--- a/source3/include/smb_macros.h
+++ b/source3/include/smb_macros.h
@@ -54,7 +54,7 @@
#define PTR_DIFF(p1,p2) ((ptrdiff_t)(((const char *)(p1)) - (const char *)(p2)))
/* assert macros */
-#define SMB_ASSERT(b) ((b)?0: \
+#define SMB_ASSERT(b) ((b)?(void)0: \
(DEBUG(0,("PANIC: assert failed at %s(%d)\n", \
__FILE__, __LINE__)), smb_panic("assert failed")))
#define SMB_ASSERT_ARRAY(a,n) SMB_ASSERT((sizeof(a)/sizeof((a)[0])) >= (n))