HAVE_IMMEDIATE_STRUCTURES and splint

Andrew Bartlett abartlet at pcug.org.au
Sat Feb 9 01:55:03 GMT 2002


andreas moroder wrote:
> 
> Hello,
> 
> as I wrote few weeks ago I am trying to catch errors in samba using splint (
> and I found ).
> 
> The problem is that splint does not like very much the definition  of NTSTATUS
> 
> typedef struct {uint32 v;} NTSTATUS.
> 
> Would it be possible to change the creation of config.h this way

Why not just patch smb.h's already existing #ifdef for other than gcc
compilers?

The 'NTSTATUS' type is our own bug-finding hack specificly designed to
prevent NTSTATUS from being confused with a BOOL etc.  (A particular
problem as NT_STATUS_OK == False)

Andrew Bartlett

-- 
Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net




More information about the samba-technical mailing list