explicitly set sentinel values on variadic functions to void pointer

This patch will silence warnings about missing sentinel values on variadic functions by explicitly setting the sentinel to a void pointer instead of trusting NULL to not simply be 0.