add cast for splint

andreas moroder claudiamoroder at
Sat Apr 13 01:00:56 GMT 2002


would it be possible to add a cast to 
#define smb_buf(buf) (buf + smb_size + CVAL(buf,smb_wct)*2)

in smb_macros.h 
and change it to ?

#define smb_buf(buf) (buf + smb_size + (unsigned int ) CVAL(buf,smb_wct)*2)

This would avoid many warnings from splint and would not change the way the 
macro works.



More information about the samba-technical mailing list