[PATCH] maint: fix "mixing declarations and code" errors