fix compiler warning
[deb_libnfs.git] / lib / libnfs-zdr.c
index 315aa0afd7f45eb04bd155d5aba8cf6c09c8828e..a159632b989e047cb06e622ffb93ab1d98884414 100644 (file)
@@ -30,6 +30,8 @@ struct opaque_auth _null_auth;
 bool_t libnfs_zdr_setpos(ZDR *zdrs, uint32_t pos)
 {
        zdrs->pos = pos;
+
+       return TRUE;
 }
 
 uint32_t libnfs_zdr_getpos(ZDR *zdrs)
@@ -284,7 +286,7 @@ static bool_t libnfs_opaque_auth(ZDR *zdrs, struct opaque_auth *auth)
                return FALSE;
        }
 
-       if (!libnfs_zdr_bytes(zdrs, &auth->oa_base, &auth->oa_length, &auth->oa_length)) {
+       if (!libnfs_zdr_bytes(zdrs, &auth->oa_base, &auth->oa_length, auth->oa_length)) {
                return FALSE;
        }
 
@@ -316,6 +318,8 @@ static bool_t libnfs_rpc_call_body(ZDR *zdrs, struct call_body *cmb)
        if (!libnfs_opaque_auth(zdrs, &cmb->cb_verf)) {
                return FALSE;
        }
+
+       return TRUE;
 }
 
 static bool_t libnfs_accepted_reply(ZDR *zdrs, struct accepted_reply *ar)