build warnings

Luke Kenneth Casson Leighton lkcl at switchboard.net
Fri Oct 9 08:37:11 EST 1998


thanks.

On Fri, 9 Oct 1998, Herb Lewis wrote:

> I didn't pay attention to who last changed this file (Luke??). There
> are a few type casting errors.
> 
> Compiling rpc_parse/parse_rpc.c
> "rpc_parse/parse_rpc.c", line 680: warning(1164): argument of type "char
> *" is
>           incompatible with parameter of type "unsigned char *"
>                 prs_uint8s(False, "lm_resp ", ps, depth, rsp->lm_resp ,
> MIN(rsp->hdr_lm_resp .str_str_len, sizeof(rsp->lm_resp ))); 
>                                                          ^
> 
> "rpc_parse/parse_rpc.c", line 684: warning(1164): argument of type "char
> *" is
>           incompatible with parameter of type "unsigned char *"
>                 prs_uint8s(False, "nt_resp ", ps, depth, rsp->nt_resp ,
> MIN(rsp->hdr_nt_resp .str_str_len, sizeof(rsp->nt_resp ))); 
>                                                          ^
> 
> "rpc_parse/parse_rpc.c", line 688: warning(1164): argument of type "char
> *" is
>           incompatible with parameter of type "unsigned char *"
>                 prs_uint8s(True , "domain  ", ps, depth, rsp->domain  ,
> MIN(rsp->hdr_domain  .str_str_len, sizeof(rsp->domain  ))); 
>                                                          ^
> 
> "rpc_parse/parse_rpc.c", line 692: warning(1164): argument of type "char
> *" is
>           incompatible with parameter of type "unsigned char *"
>                 prs_uint8s(True , "user    ", ps, depth, rsp->user    ,
> MIN(rsp->hdr_usr     .str_str_len, sizeof(rsp->user    ))); 
>                                                          ^
> 
> "rpc_parse/parse_rpc.c", line 696: warning(1164): argument of type "char
> *" is
>           incompatible with parameter of type "unsigned char *"
>                 prs_uint8s(True , "wks     ", ps, depth, rsp->wks     ,
> MIN(rsp->hdr_wks     .str_str_len, sizeof(rsp->wks     ))); 
>                                                          ^
> 
> "rpc_parse/parse_rpc.c", line 703: warning(1164): argument of type "char
> *" is
>           incompatible with parameter of type "unsigned char *"
>                         prs_uint8s(False, "sess_key", ps, depth,
> rsp->sess_key, MIN(rsp->hdr_sess_key.str_str_len,
> sizeof(rsp->sess_key))); 
>                                                                  ^
> 
> "rpc_parse/parse_rpc.c", line 720: warning(1164): argument of type "char
> *" is
>           incompatible with parameter of type "unsigned char *"
>                 prs_uint8s(False, "sess_key", ps, depth, rsp->sess_key,
> MIN(rsp->hdr_sess_key.str_str_len, sizeof(rsp->sess_key))); 
>                                                          ^
> 
> "rpc_parse/parse_rpc.c", line 721: warning(1164): argument of type "char
> *" is
>           incompatible with parameter of type "unsigned char *"
>                 prs_uint8s(True , "wks     ", ps, depth, rsp->wks     ,
> MIN(rsp->hdr_wks     .str_str_len, sizeof(rsp->wks     ))); 
>                                                          ^
> 
> "rpc_parse/parse_rpc.c", line 722: warning(1164): argument of type "char
> *" is
>           incompatible with parameter of type "unsigned char *"
>                 prs_uint8s(True , "user    ", ps, depth, rsp->user    ,
> MIN(rsp->hdr_usr     .str_str_len, sizeof(rsp->user    ))); 
>                                                          ^
> 
> "rpc_parse/parse_rpc.c", line 723: warning(1164): argument of type "char
> *" is
>           incompatible with parameter of type "unsigned char *"
>                 prs_uint8s(True , "domain  ", ps, depth, rsp->domain  ,
> MIN(rsp->hdr_domain  .str_str_len, sizeof(rsp->domain  ))); 
>                                                          ^
> 
> "rpc_parse/parse_rpc.c", line 724: warning(1164): argument of type "char
> *" is
>           incompatible with parameter of type "unsigned char *"
>                 prs_uint8s(False, "nt_resp ", ps, depth, rsp->nt_resp ,
> MIN(rsp->hdr_nt_resp .str_str_len, sizeof(rsp->nt_resp ))); 
>                                                          ^
> 
> "rpc_parse/parse_rpc.c", line 725: warning(1164): argument of type "char
> *" is
>           incompatible with parameter of type "unsigned char *"
>                 prs_uint8s(False, "lm_resp ", ps, depth, rsp->lm_resp ,
> MIN(rsp->hdr_lm_resp .str_str_len, sizeof(rsp->lm_resp ))); 
>                                                          ^
> 
> -- 
> ======================================================================
> Herb Lewis                                   Silicon Graphics 
> Technical Marketing                          2011 N Shoreline Blvd
> Network Systems Division                     Mountain View, CA  94043  
> herb at sgi.com                                 Tel: 650-933-2177
> http://www.sgi.com                           Fax: 650-932-2177          
> ======================================================================
> 

<a href="mailto:lkcl at samba.anu.edu.au" > Luke Kenneth Casson Leighton  </a>
<a href="http://mailhost.cb1.com/~lkcl"> Samba and Network Development </a>
<a href="http://www.samba.co.uk"       > Samba and Network Consultancy </a>



More information about the samba-cvs mailing list