csync: fix warnings

warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]