[c] Why am I getting "void value not ignored as it ought to be"?