some minor refac
Merge branch 'master' of https://github.com/ryanfzy/c-codes