Confused: bad ptr conversion?

Luke Kenneth Casson Leighton lkcl at samba.org
Mon Jul 10 11:56:36 GMT 2000


On Sun, 9 Jul 2000, Christopher R. Hertel wrote:

> Someone take a look at this and tell me what I'm missing.
> 
> In function lp_do_parameter(), file param/loadparm.c, line 2475.
> 
>         /* if it is a special case then go ahead */
>         if (parm_table[parmnum].special)
>         {
>                 parm_table[parmnum].special(pszParmValue, (char **)parm_ptr);
>                 return (True);
>         }
> 
> There's a typecast in there that takes a (char *) and converts it to a
> (char **).  I think that this should be &parm_ptr instead of (char 
> **parm_ptr).

it does look weird, not helped by dflt_ptr being a void* not a char**.




More information about the samba-technical mailing list