ignored return values

Simo Sorce idra at samba.org
Sun Jan 20 01:18:08 GMT 2002


On Sun, Jan 20, 2002 at 09:22:08AM +0100, Claudia Moroder wrote:
> Hello Jeremy,
> 
> as I wrote the list of ignored return values is very long. It think it would
> be of no help if I send you this list. What about installing splint from
> splint.org ?
> In this case you must comment out syslog.h in includes.h as I wrote in
> another mail.
> If you plan to install it I can give you few parameter fro splint you should
> use. Let me know.
I'm interestd, can you post them to the list?
thanks,
Simo.




> 
> Thank you
> 
> Andreas
> 
> -----Ursprüngliche Nachricht-----
> Von: "Jeremy Allison" <jra at samba.org>
> An: "andreas moroder" <claudiamoroder at st-ulrich.suedtirol.net>
> Cc: <samba-technical at lists.samba.org>
> Gesendet: Samstag, 19. Januar 2002 23:32
> Betreff: Re: ignored return values
> 
> 
> > On Sat, Jan 19, 2002 at 11:05:19PM +0100, andreas moroder wrote:
> > > Hello,
> > >
> > > I try to find bug in smaba using splint. One of the most common warnings
> are
> > > the "ignored return values". In server.c there are 40 function calls
> where
> > > the return value is ignored. Is this ok. What's the sense of return
> values if
> > > they are ignored. Ok, I ignore return values of close() too.
> >
> > Actually I never ignore the return from close() in a client
> > file write as with nfs mounts a failed write can be returned
> > in a close() return val :-).
> >
> > > Is there a rule which values can be ignored and which should allways be
> > > checked ?
> >
> > No hard and fast one. But we're trying to get more and more
> > paranoid about returns.
> >
> > Jeremy.
> 
> 

-- 
Simo Sorce       idra at samba.org
-------------------------------
Samba Team http://www.samba.org




More information about the samba-technical mailing list