From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Mon, 12 Sep 2022 16:26:58 +0000 (-0400) Subject: Replace (http_status_t)0 correct HTTP_STATUS code X-Git-Tag: v2.4.3~130^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F479%2Fhead;p=thirdparty%2Fcups.git Replace (http_status_t)0 correct HTTP_STATUS code --- diff --git a/cups/request.c b/cups/request.c index 46ca4e9ccf..f52a84a40a 100644 --- a/cups/request.c +++ b/cups/request.c @@ -871,7 +871,7 @@ cupsSendRequest(http_t *http, /* I - Connection to server or @code CUPS_HTTP * Don't try using the Expect: header the next time around... */ - expect = (http_status_t)0; + expect = HTTP_STATUS_NONE; DEBUG_puts("2cupsSendRequest: Reconnecting after " "HTTP_EXPECTATION_FAILED."); diff --git a/scheduler/policy.c b/scheduler/policy.c index dda14d7a8f..b55c16a56b 100644 --- a/scheduler/policy.c +++ b/scheduler/policy.c @@ -116,7 +116,7 @@ cupsdCheckPolicy(cupsd_policy_t *p, /* I - Policy */ { cupsdLogMessage(CUPSD_LOG_CRIT, "cupsdCheckPolicy: p=%p, con=%p.", p, con); - return ((http_status_t)0); + return (HTTP_STATUS_SERVER_ERROR); } /* @@ -126,7 +126,7 @@ cupsdCheckPolicy(cupsd_policy_t *p, /* I - Policy */ if ((po = cupsdFindPolicyOp(p, con->request->request.op.operation_id)) == NULL) { cupsdLogMessage(CUPSD_LOG_DEBUG2, "cupsdCheckPolicy: No matching operation, returning 0."); - return ((http_status_t)0); + return (HTTP_STATUS_OK); } con->best = po;