input_common.c - small cleanups