]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Clean up.
authorMichael R Sweet <msweet@msweet.org>
Wed, 27 Dec 2023 21:47:16 +0000 (16:47 -0500)
committerMichael R Sweet <msweet@msweet.org>
Wed, 27 Dec 2023 21:47:16 +0000 (16:47 -0500)
CHANGES.md
cups/http-addrlist.c

index 04905ec42f7a9ee946159b3cced56a081aec11ac..a110a01377a2c1dadb4e5e23d13729776dc422e5 100644 (file)
@@ -4,20 +4,20 @@ CHANGES - OpenPrinting CUPS 2.5b1 - (TBA)
 Changes in CUPS v2.5b1 (TBA)
 ----------------------------
 
-- Added additional check on socket if `revents` from `poll()` returns POLLHUP
-  together with POLLIN or POLLOUT in `httpAddrConnect2()` (Issue #839)
 - Added `cupsDNSSD` APIs.
 - Added `cupsConcatString` and `cupsCopyString` string APIs.
 - Added a new argument value for `lpstat` argument '-W' - `successful` -
   to get successfully printed jobs (Issue #830)
-- Added new API for form, JSON, JWT, IPP, raster
+- Added new APIs for form, JSON, JWT, IPP, and raster setup.
 - Added OpenSSL support for `cupsHashData` (Issue #762)
 - Added warning if the device has to do IPP request for 'all,media-col-database'
   in separate requests (Issue #829)
 - Added driver filter to web interface (Issue #848)
 - Building with TLS support is now required - CUPS supports OpenSSL, GNUTLS
-  and LibreSSL
+  and LibreSSL.
 - Updated `cupsArray` APIs.
+- Updated `httpAddrConnect2()` to handle `POLLHUP` together with `POLLIN` or
+  `POLLOUT` (Issue #839)
 - Fixed crash in `scan_ps()` if incoming argument is NULL (Issue #831)
 - Fixed Digest authentication support (Issue #260)
 - Fixed delays in lpd backend (Issue #741)
index 436e21f8a2082444e4624e4641f6665c6df424f5..2036d92c4bb3d93b599fcb7548b0e9bed26913a4 100644 (file)
@@ -312,7 +312,7 @@ httpAddrConnect2(
          {
            pfds[i].revents |= POLLERR;
 #  ifdef DEBUG
-           DEBUG_printf(("1httpAddrConnect2: getsockopt returned: %d with error: %s", sres, strerror(serr)));
+           DEBUG_printf("1httpAddrConnect2: getsockopt returned: %d with error: %s", sres, strerror(serr));
 #  endif
          }
          else if (pfds[i].revents && (pfds[i].revents & POLLHUP) && (pfds[i].revents & (POLLIN | POLLOUT)))
@@ -321,7 +321,6 @@ httpAddrConnect2(
          }
        }
 
-
        if (pfds[i].revents && !(pfds[i].revents & (POLLERR | POLLHUP)))
        {
          *sock    = fds[i];