Whilst in the process of fixing outstanding function-pointer casts in the
LHASH code, this evil was uncovered. The cast was obscuring the fact that the function was prototyped to take 2 parameters when in fact it is being used as a callback that should take only one. Anyway, the function itself ignores the second parameter (thankfully). A proper cure is on the way but for now this corrects the inconsistency.
This commit is contained in:
@@ -305,7 +305,7 @@ void OBJ_NAME_do_all_sorted(int type,void (*fn)(const OBJ_NAME *,void *arg),
|
|||||||
|
|
||||||
static int free_type;
|
static int free_type;
|
||||||
|
|
||||||
static void names_lh_free(OBJ_NAME *onp, int type)
|
static void names_lh_free(OBJ_NAME *onp)
|
||||||
{
|
{
|
||||||
if(onp == NULL)
|
if(onp == NULL)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user