From: mike Date: Wed, 3 Jan 2007 15:07:43 +0000 (+0000) Subject: More compiler warnings/dead code elimination. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=599c75268134dec85d190dbc03292143dea2519f;p=thirdparty%2Fcups.git More compiler warnings/dead code elimination. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@6174 7a7537e8-13f0-0310-91df-b6672ffda945 --- diff --git a/scheduler/auth.c b/scheduler/auth.c index 6caaae581b..bcb56ed613 100644 --- a/scheduler/auth.c +++ b/scheduler/auth.c @@ -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) /* diff --git a/scheduler/ipp.c b/scheduler/ipp.c index 8a434cb852..0ff77b62d0 100644 --- a/scheduler/ipp.c +++ b/scheduler/ipp.c @@ -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); /*