Update sync.c

Removed lint and FreeBSD ID information. Removed comments, standardized formatting.