diff --git a/oc2/oc.c b/oc2/oc.c index c82c46f7d..226eb681e 100644 --- a/oc2/oc.c +++ b/oc2/oc.c @@ -1762,13 +1762,13 @@ fetch command. \retval the HTTP code */ -OCerror +int oc_httpcode(OCobject link) { OCstate* state; OCVERIFY(OC_State,link); OCDEREF(OCstate*,state,link); - return state->error.httpcode; + return (int)state->error.httpcode; } /**************************************************/