]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
More compiler warnings/dead code elimination.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 3 Jan 2007 15:07:43 +0000 (15:07 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 3 Jan 2007 15:07:43 +0000 (15:07 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@6174 7a7537e8-13f0-0310-91df-b6672ffda945

scheduler/auth.c
scheduler/ipp.c

index 6caaae581bc335b2969564a3195223f62cf4aacd..bcb56ed6132382bc6e02c707094d2b26b7fff0e8 100644 (file)
@@ -104,7 +104,7 @@ static char         *get_md5_password(const char *username,
 #if HAVE_LIBPAM
 static int             pam_func(int, const struct pam_message **,
                                 struct pam_response **, void *);
-#else
+#elif !defined(HAVE_USERSEC_H)
 static void            to64(char *s, unsigned long v, int n);
 #endif /* HAVE_LIBPAM */
 
@@ -2340,7 +2340,7 @@ pam_func(
 
   return (PAM_SUCCESS);
 }
-#else
+#elif !defined(HAVE_USERSEC_H)
 
 
 /*
index 8a434cb852dc14e721f11ac711da50d3378ecd71..0ff77b62d0187cb116ae054be4f0d6259a69e818 100644 (file)
@@ -9100,7 +9100,7 @@ validate_name(const char *name)   /* I - Name to check */
   */
 
   for (ptr = name; *ptr; ptr ++)
-    if ((*ptr >= 0 && *ptr <= ' ') || *ptr == 127 || *ptr == '/' || *ptr == '#')
+    if ((*ptr > 0 && *ptr <= ' ') || *ptr == 127 || *ptr == '/' || *ptr == '#')
       return (0);
 
  /*