From: Michael R Sweet Date: Tue, 3 May 2022 19:59:20 +0000 (-0400) Subject: Fix the prototype for the httpWriteResponse function (Issue #380) X-Git-Tag: v2.4.2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=852e09c2f1932cb7484051b64dc7e7095725597b;p=thirdparty%2Fcups.git Fix the prototype for the httpWriteResponse function (Issue #380) --- diff --git a/CHANGES.md b/CHANGES.md index aac4aa81d6..3d325ca560 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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. diff --git a/cups/http.h b/cups/http.h index 6c45301e5e..ea648f8fdc 100644 --- a/cups/http.h +++ b/cups/http.h @@ -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;