Improve packets.c coding style
Noticed some issues on packets.c coding style on passing. Improve it.
Apply also to S3_1 to keep diff between it and master smaller.
Noticed some issues on packets.c coding style on passing. Improve it.