21cc0acbc3
getopt returns int and not char, so assigning the value to char is not ideal, especially on platforms with unsigned chars.