remove needless goto.
a bit fix logpack.{c,h}.
avoid goto.
avoid goto.
avoid goto and a bit refactor.
a bit refactor.
Merge branch 'review-work' into develop