]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Replace deprecated httpConnect function with httpConnect2 560/head
authorRose <83477269+AtariDreams@users.noreply.github.com>
Sat, 26 Nov 2022 14:56:52 +0000 (09:56 -0500)
committerRose <83477269+AtariDreams@users.noreply.github.com>
Sat, 26 Nov 2022 14:56:52 +0000 (09:56 -0500)
notifier/rss.c

index 3efc3f9ece93e3283caa50807063569c06f9f8e0..23c4ba2805ee011087a4a7909d74f15438e4d25a 100644 (file)
@@ -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));