fix build warnings due to wrong prototype & usage of the API

Signed-off-by: Eitan Ben-Amos<eitanb@il.ibm.com>

Signed-off-by: Jim Lieb <jlieb@panasas.com>
3 files changed