getcwd: use (void) everywhere

Signed-off-by: Mike Frysinger <vapier@gentoo.org>