Fix wrong return value

The return type is void * not grn_rc.