incompatible pointer type
Bradley W. Langhorst
brad at langhorst.com
Fri May 10 15:25:02 GMT 2002
utils/net_rpc_join.c: In function `net_rpc_join_newstyle':
utils/net_rpc_join.c:167: warning: passing arg 6 of
`cli_samr_lookup_names' from incompatible pointer type
I saw that warning during compilation of 3.0 head
and thought I'd look into it
arg 6 is supposed to be a char**
just before the call an fstring is casted to a char* like this
names = (char *)&acct_name[0];
then it's passed like this
cli_samr_lookup_names(cli, mem_ctx,&domain_pol, flags, 1,
&names,
&num_rids, &user_rids, &name_types)
so it being passed the address of a pointer to a char*
that's a char** right?
so what's wrong here?
brad
More information about the samba-technical
mailing list