From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Sat, 26 Nov 2022 14:56:52 +0000 (-0500) Subject: Replace deprecated httpConnect function with httpConnect2 X-Git-Tag: v2.4.3~104^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F560%2Fhead;p=thirdparty%2Fcups.git Replace deprecated httpConnect function with httpConnect2 --- diff --git a/notifier/rss.c b/notifier/rss.c index 3efc3f9ece..23c4ba2805 100644 --- a/notifier/rss.c +++ b/notifier/rss.c @@ -156,7 +156,8 @@ main(int argc, /* I - Number of command-line arguments */ return (1); } - if ((http = httpConnect(host, port)) == NULL) + if (http = (httpConnect2(host, port, NULL, AF_UNSPEC, + HTTP_ENCRYPTION_IF_REQUESTED, 1, 30000, NULL)) == NULL) { fprintf(stderr, "ERROR: Unable to connect to %s on port %d: %s\n", host, port, strerror(errno));