change getopt return from char to int
Merge pull request #193 from MaZderMind/getoptint

change getopt return storage from char to int