Avoid using void pointer when we have a real type for the memfail function

This commit is contained in:
Panu Matilainen 2010-09-21 13:41:25 +03:00
parent 892bf4eb86
commit a82633c2a3
2 changed files with 3 additions and 3 deletions

View File

@ -29,9 +29,9 @@ static void *vmefail(size_t size)
return val;
}
void * rpmSetMemFail(rpmMemFailFunc func, void *data)
rpmMemFailFunc rpmSetMemFail(rpmMemFailFunc func, void *data)
{
void *ofunc = failfunc;
rpmMemFailFunc ofunc = failfunc;
failfunc = func;
failfunc_data = data;
return ofunc;

View File

@ -146,6 +146,6 @@ typedef void * (*rpmMemFailFunc) (size_t size, void *data);
* @param data User data (or NULL)
* @return Previous callback function
*/
void * rpmSetMemFail(rpmMemFailFunc func, void *data);
rpmMemFailFunc rpmSetMemFail(rpmMemFailFunc func, void *data);
#endif /* _RPMUTIL_H */