]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Replace (http_status_t)0 correct HTTP_STATUS code 479/head
authorRose <83477269+AtariDreams@users.noreply.github.com>
Mon, 12 Sep 2022 16:26:58 +0000 (12:26 -0400)
committerRose <83477269+AtariDreams@users.noreply.github.com>
Mon, 12 Sep 2022 18:56:00 +0000 (14:56 -0400)
cups/request.c
scheduler/policy.c

index 46ca4e9ccf36d26c32a9780c1002f4cf89bcb6df..f52a84a40af3b3e2f0345d16e7ea6ed5c8ee249e 100644 (file)
@@ -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.");
index dda14d7a8f35cc2a1639202b59a644bbee54e1a6..b55c16a56bdd69ad5ac9f3aed3e82182a978a970 100644 (file)
@@ -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;