From 0bdf078a243e49d37d9f8226f2bde49d9b8789dd Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Mon, 12 Sep 2022 12:26:58 -0400 Subject: [PATCH] Replace (http_status_t)0 correct HTTP_STATUS code --- cups/request.c | 2 +- scheduler/policy.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.47.2