Confused: bad ptr conversion?

Christopher R. Hertel crh at
Sun Jul 9 06:23:18 GMT 2000

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 

It's late and I'm tired, so someone double check this for me please.

Chris -)-----

Christopher R. Hertel -)-----                   University of Minnesota
crh at              Networking and Telecommunications Services

    Ideals are like stars; you will not succeed in touching them
    with your choose them as your guides, and following
    them you will reach your destiny.  --Carl Schultz

More information about the samba-technical mailing list