add cast for splint

andreas moroder claudiamoroder at st-ulrich.suedtirol.net
Sat Apr 13 01:00:56 GMT 2002


Hello

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.

Bye

Andreas




More information about the samba-technical mailing list