svn commit: samba r8288 - in branches/SAMBA_4_0/source/include: .

tpot at samba.org tpot at samba.org
Sun Jul 10 10:52:46 GMT 2005


Author: tpot
Date: 2005-07-10 10:52:46 +0000 (Sun, 10 Jul 2005)
New Revision: 8288

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8288

Log:
The SMB_ASSERT_ARRAY macro isn't used anymore.

Modified:
   branches/SAMBA_4_0/source/include/smb_macros.h


Changeset:
Modified: branches/SAMBA_4_0/source/include/smb_macros.h
===================================================================
--- branches/SAMBA_4_0/source/include/smb_macros.h	2005-07-10 08:47:34 UTC (rev 8287)
+++ branches/SAMBA_4_0/source/include/smb_macros.h	2005-07-10 10:52:46 UTC (rev 8288)
@@ -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 */



More information about the samba-cvs mailing list