Casting -1 to void* in the remove function