From: Ralf Wildenhues Date: Tue, 5 Oct 2004 12:42:45 +0000 (+0000) Subject: * libltdl/ltdl.c (load_deplibs, try_dlopen): Revert unnecessary casts X-Git-Tag: release-2-1b~928 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3d2ada3c6e2c3e2fbcc4cda201d66b0a54fedd0;p=thirdparty%2Flibtool.git * libltdl/ltdl.c (load_deplibs, try_dlopen): Revert unnecessary casts to int from my patch from 2004-10-01. --- diff --git a/ChangeLog b/ChangeLog index 4134add0b..259ac3030 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-10-05 Ralf Wildenhues + * libltdl/ltdl.c (load_deplibs, try_dlopen): Revert unnecessary casts + to int from my patch from 2004-10-01. + * AUTHORS: Add myself. 2004-10-05 Peter O'Gorman diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 06ce70468..4c4225958 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -737,10 +737,10 @@ load_deplibs (lt_dlhandle handle, char *deplibs) p = deplibs; while (*p) { - if (!isspace ((int)(unsigned char) *p)) + if (!isspace ((unsigned char) *p)) { char *end = p+1; - while (*end && !isspace((int)(unsigned char) *end)) + while (*end && !isspace((unsigned char) *end)) { ++end; } @@ -786,14 +786,14 @@ load_deplibs (lt_dlhandle handle, char *deplibs) p = deplibs; while (*p) { - if (isspace ((int)(unsigned char) *p)) + if (isspace ((unsigned char) *p)) { ++p; } else { char *end = p+1; - while (*end && !isspace ((int)(unsigned char) *end)) + while (*end && !isspace ((unsigned char) *end)) { ++end; } @@ -1004,7 +1004,7 @@ try_dlopen (lt_dlhandle *phandle, const char *filename) int i; for (i = 0; i < ext - base_name; ++i) { - if (isalnum ((int)(unsigned char)(base_name[i]))) + if (isalnum ((unsigned char)(base_name[i]))) { name[i] = base_name[i]; }