]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Some minor changes to get TOT building on Linux again.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 17 Dec 2012 22:15:39 +0000 (22:15 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Mon, 17 Dec 2012 22:15:39 +0000 (22:15 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10775 7a7537e8-13f0-0310-91df-b6672ffda945

cups/http.c
scheduler/main.c
test/ippserver.c

index d6e784e992152258e8349114fd2df9da693d854c..eaf1899f96e49d2377094caa21065140ed5540b2 100644 (file)
@@ -5124,8 +5124,6 @@ http_set_wait(http_t *http)               /* I - Connection to server */
 static int                             /* O - 0 on success, -1 on failure */
 http_setup_ssl(http_t *http)           /* I - Connection to server */
 {
-  _cups_globals_t      *cg = _cupsGlobals();
-                                       /* Pointer to library globals */
   char                 hostname[256],  /* Hostname */
                        *hostptr;       /* Pointer into hostname */
 
@@ -5138,6 +5136,8 @@ http_setup_ssl(http_t *http)              /* I - Connection to server */
   gnutls_certificate_client_credentials *credentials;
                                        /* TLS credentials */
 #  elif defined(HAVE_CDSASSL)
+  _cups_globals_t      *cg = _cupsGlobals();
+                                       /* Pointer to library globals */
   OSStatus             error;          /* Error code */
   const char           *message = NULL;/* Error message */
   cups_array_t         *credentials;   /* Credentials array */
index 528fb9b1ade8dc10ef9903eb3d663f703c166ba8..e6583680ddc6c96ab06f3d59394f00d1d0ce157f 100644 (file)
@@ -946,7 +946,7 @@ main(int  argc,                             /* I - Number of command-line args */
       */
 
       cupsdDeleteCert(0);
-      cupsdAddCert(0, "root", DefaultAuthType);
+      cupsdAddCert(0, "root", cupsdDefaultAuthType());
     }
 #endif /* !HAVE_AUTHORIZATION_H */
 
index 3b85ad6f1875778406ec992c80d56c05d9b8bc27..eae5b7e75fff979946fa24158f524be68ab2be23 100644 (file)
@@ -93,6 +93,7 @@
 #ifdef HAVE_DNSSD
 #  include <dns_sd.h>
 #endif /* HAVE_DNSSD */
+#include <limits.h>
 #include <sys/stat.h>
 #include <sys/fcntl.h>
 #include <poll.h>