this may matter with SyncState being for example ~/.local/state/isync/.
while moving the code, localize some variables, and use C99 comments.