patch that permits splint usage

andreas moroder claudiamoroder at st-ulrich.suedtirol.net
Sat Feb 16 06:13:00 GMT 2002


Hello,

is it possible to add this two patches against head. They are necessary if 
anyone plans to use splint and does not touch the standard behaviour of samba.

Thanks in advance

Andreas

--- include/smb.h	Fri Feb 15 21:08:23 2002
+++ include/smb.and	Sat Feb 16 12:14:22 2002
@@ -209,6 +209,10 @@
    are mixed up. This is especially important as we slowly convert Samba
    from using BOOL for internal functions
 */
+#ifdef _SPLINT_
+#undef HAVE_IMMEDIATE_STRUCTURES
+#endif
+
 #if defined(HAVE_IMMEDIATE_STRUCTURES)
 typedef struct {uint32 v;} NTSTATUS;
 #define NT_STATUS(x) ((NTSTATUS) { x })



--- include/safe_string.h	Fri Feb 15 21:08:11 2002
+++ include/safe_string.and	Sat Feb 16 12:12:23 2002
@@ -21,6 +21,8 @@
 #ifndef _SAFE_STRING_H
 #define _SAFE_STRING_H

+#ifndef _SPLINT_
+
 #ifdef strcpy
 #undef strcpy
 #endif /* strcpy */
@@ -35,6 +37,8 @@
 #undef sprintf
 #endif /* sprintf */
 #define sprintf __ERROR__XX__NEVER_USE_SPRINTF__;
+
+#endif /* _SPLINT_ */

 #define pstrcpy(d,s) safe_strcpy((d), (s),sizeof(pstring)-1)
 #define pstrcat(d,s) safe_strcat((d), (s),sizeof(pstring)-1)




More information about the samba-technical mailing list