Avoid using void pointer when we have a real type for the memfail function
This commit is contained in:
parent
892bf4eb86
commit
a82633c2a3
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue