From 4911ddf32d466272365989e0f267f9cf1cc6ed69 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 5 Nov 2013 23:29:16 +0100 Subject: updated to libopts 5.18.2 --- src/libopts/compat/compat.h | 2 +- src/libopts/compat/strchr.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libopts/compat') diff --git a/src/libopts/compat/compat.h b/src/libopts/compat/compat.h index e7b30ea3ab..ebb3157b83 100644 --- a/src/libopts/compat/compat.h +++ b/src/libopts/compat/compat.h @@ -237,7 +237,7 @@ #endif #if !defined (MAXPATHLEN) -# define MAXPATHLEN ((size_t)4096) +# define MAXPATHLEN 4096 #endif /* MAXPATHLEN */ #define AG_PATH_MAX ((size_t)MAXPATHLEN) diff --git a/src/libopts/compat/strchr.c b/src/libopts/compat/strchr.c index 0def700f86..f40938707b 100644 --- a/src/libopts/compat/strchr.c +++ b/src/libopts/compat/strchr.c @@ -34,7 +34,7 @@ static char * strchr(char const *s, int c) { do { - if ((unsigned)*s == (unsigned)c) + if ((unsigned char)*s == (unsigned char)c) return s; } while (*(++s) != NUL); @@ -51,7 +51,7 @@ strrchr(char const *s, int c) if (--e < s) break; - if ((unsigned)*e == (unsigned)c) + if ((unsigned char)*e == (unsigned char)c) return e; } return NULL; -- cgit v1.2.1