]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix the prototype for the httpWriteResponse function (Issue #380)
authorMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 3 May 2022 19:59:20 +0000 (15:59 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 3 May 2022 19:59:20 +0000 (15:59 -0400)
CHANGES.md
cups/http.h

index aac4aa81d6d2a9e4415bc93f8ca18e0f98495b86..3d325ca560128e17d9b860798eac3a5f5c2cdd88 100644 (file)
@@ -23,6 +23,7 @@ Changes in CUPS v2.4.2 (TBA)
 - Updated the scheduler to set "auth-info-required" to "username,password" if a
   backend reports it needs authentication info but doesn't set a method for
   authentication (Issue #373)
+- Fixed the prototype for the `httpWriteResponse` function (Issue #380)
 - `cupsGetResponse` did not always set the last error.
 - Fixed a number of old references to the Apple CUPS web page.
 - Restored the default/generic printer icon file for the web interface.
index 6c45301e5e663a0a1c02274e17ebfc09ed2c8f08..ea648f8fdc58776f2da44f761f836c1d685e33d2 100644 (file)
@@ -574,7 +574,7 @@ extern http_status_t        httpGetExpect(http_t *http) _CUPS_API_1_7;
 extern ssize_t         httpPeek(http_t *http, char *buffer, size_t length) _CUPS_API_1_7;
 extern http_state_t    httpReadRequest(http_t *http, char *resource, size_t resourcelen) _CUPS_API_1_7;
 extern void            httpSetDefaultField(http_t *http, http_field_t field, const char *value) _CUPS_API_1_7;
-extern http_state_t    httpWriteResponse(http_t *http, http_status_t status) _CUPS_API_1_7;
+extern int             httpWriteResponse(http_t *http, http_status_t status) _CUPS_API_1_7;
 
 /* New in CUPS 2.0/macOS 10.10 */
 extern int             httpAddrClose(http_addr_t *addr, int fd) _CUPS_API_2_0;