timesync: refactored a bit to remove duplications
unwarn: i++ twice in one statement is undefined
unwarn: unused variables
main: we don't need STACKTEST flag for threads
unwarn: removed some more simple warnings
unwarn: actually use size parameter

    + in leader_elect we can assume that a packet is no
      longer than size (this is defined in leader_init)
      hence, use it, otherwise we could get rid of size