removed unnecessary 'u_char' and replaced with 'char'.