ignored return values

Claudia Moroder claudiamoroder at st-ulrich.suedtirol.net
Sun Jan 20 00:23:02 GMT 2002

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.

Thank you


-----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
> > the "ignored return values". In server.c there are 40 function calls
> > 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.

More information about the samba-technical mailing list