HAVE_IMMEDIATE_STRUCTURES and splint

Claudia Moroder claudiamoroder at st-ulrich.suedtirol.net
Sat Feb 9 03:05:03 GMT 2002


Hello Andrew,

-----Ursprüngliche Nachricht-----
Von: "Andrew Bartlett" <abartlet at pcug.org.au>
An: "andreas moroder" <claudiamoroder at st-ulrich.suedtirol.net>
Cc: <samba-technical at lists.samba.org>
Gesendet: Samstag, 9. Februar 2002 10:49
Betreff: Re: HAVE_IMMEDIATE_STRUCTURES and splint


> 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?


Ok, this is also a solution. It is probably easier to implement.
Andreas

>
> 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