]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix deprecation and uninitialized value issues.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Fri, 29 Jan 2016 21:13:57 +0000 (21:13 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Fri, 29 Jan 2016 21:13:57 +0000 (21:13 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@13074 a1ca3aef-8c08-0410-bb20-df032aa958be

cups/dest.c
test/ipptool.c

index a87ebed05268b121bd8b30d26240e5834a992248..34abfdbcf8f79dec0d144aa60aa39194a3b7bc98 100644 (file)
@@ -3,7 +3,7 @@
  *
  * User-defined destination (and option) support for CUPS.
  *
- * Copyright 2007-2015 by Apple Inc.
+ * Copyright 2007-2016 by Apple Inc.
  * Copyright 1997-2007 by Easy Software Products.
  *
  * These coded instructions, statements, and computer programs are the
index 6539e10e79f7255935998de86542446a6472ea29..29888916940b3700765d3df078589339ab22cb79 100644 (file)
@@ -3,7 +3,7 @@
  *
  * ipptool command for CUPS.
  *
- * Copyright 2007-2015 by Apple Inc.
+ * Copyright 2007-2016 by Apple Inc.
  * Copyright 1997-2007 by Easy Software Products.
  *
  * These coded instructions, statements, and computer programs are the
@@ -1744,7 +1744,7 @@ do_tests(FILE         *outfile,           /* I - Output file */
                    tokenptr = ptr;
                }
                else
-                 i = (int)strtol(tokenptr, &tokenptr, 0);
+                 i = (int)strtol(token, &tokenptr, 0);
 
                values[0] = i;
 
@@ -2662,7 +2662,7 @@ do_tests(FILE         *outfile,           /* I - Output file */
              http->error != ETIMEDOUT)
 #endif /* WIN32 */
          {
-           if (httpReconnect(http))
+           if (httpReconnect2(http, 30000, NULL))
              prev_pass = 0;
          }
          else if (status == HTTP_STATUS_ERROR || status == HTTP_STATUS_CUPS_AUTHORIZATION_CANCELED)
@@ -2689,13 +2689,13 @@ do_tests(FILE         *outfile,         /* I - Output file */
          http->error != ETIMEDOUT)
 #endif /* WIN32 */
       {
-       if (httpReconnect(http))
+       if (httpReconnect2(http, 30000, NULL))
          prev_pass = 0;
       }
       else if (status == HTTP_STATUS_ERROR)
       {
         if (!Cancel)
-          httpReconnect(http);
+          httpReconnect2(http, 30000, NULL);
 
        prev_pass = 0;
       }