ignored return values

Jeremy Allison jra at samba.org
Sat Jan 19 14:33:08 GMT 2002

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.


More information about the samba-technical mailing list