git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7c6b20
)
r8288: The SMB_ASSERT_ARRAY macro isn't used anymore.
author
Tim Potter
<tpot@samba.org>
Sun, 10 Jul 2005 10:52:46 +0000
(10:52 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:19:32 +0000
(13:19 -0500)
(This used to be commit
aab24385ab736f4072e25ad5702ee0aaf4192ecc
)
source4/include/smb_macros.h
patch
|
blob
|
history
diff --git
a/source4/include/smb_macros.h
b/source4/include/smb_macros.h
index 23b1fd1a4e2f0ed33aec4fbe69a66ea0b51ae005..aee2adf38fe1c8cc7dc1842c4744f6b6c97b338c 100644
(file)
--- a/
source4/include/smb_macros.h
+++ b/
source4/include/smb_macros.h
@@
-44,8
+44,6
@@
DEBUG(0,("PANIC: assert failed at %s(%d)\n", __FILE__, __LINE__)); \
smb_panic("assert failed"); }} while (0)
-#define SMB_ASSERT_ARRAY(a,n) SMB_ASSERT((sizeof(a)/sizeof((a)[0])) >= (n))
-
/* REWRITE TODO: remove these smb_xxx macros */
#define smb_buf(buf) (((char *)(buf)) + MIN_SMB_SIZE + CVAL(buf,HDR_WCT+4)*2)
@@
-75,5
+73,4
@@
#define SAFE_FREE(x) do { if ((x) != NULL) {free(discard_const_p(void *, (x))); (x)=NULL;} } while(0)
#endif
-
#endif /* _SMB_MACROS_H */