Style:  Use 'int' not 'char' for status return types.
Fix a const mistake.