Updates to safemem.h, removed void casts.