src: Several syntax fixes for check-local

make check-local in src/ passes now.

Change-Id: Iec0df593e228f8d396a5307a5ad55532bf911e0a
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>