fix a compile warning

This change fixes the following compiler warning:

warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
Merge pull request #8 from huahang/patch-1

fix a compile warning