void set_errno_from_session() { int err = http_result_code_from_session(); if( err == EIO || err == ERRNO_ERROR_STRING) { errno = err; } else { set_errno_from_http_errcode(err); } }
void set_errno_from_session(csync_owncloud_ctx_t *ctx) { int err = http_result_code_from_session(ctx); if( err == EIO || err == ERRNO_ERROR_STRING) { errno = err; } else { set_errno_from_http_errcode(err); } }