]> granicus.if.org Git - php/commitdiff
Remove unnecessary casts.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 3 Dec 2003 22:51:51 +0000 (22:51 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 3 Dec 2003 22:51:51 +0000 (22:51 +0000)
ext/standard/url.c

index 1ae3e7e61905efd78d263d37456ff8b47785d4da..47dcab002e49f239d0d8a6016fe26b5008998d17 100644 (file)
@@ -104,7 +104,7 @@ PHPAPI php_url *php_url_parse(char *str)
                         * correctly parse things like a.com:80
                         */
                        p = e + 1;
-                       while (isdigit((int)*(unsigned char *)p)) {
+                       while (isdigit(p)) {
                                p++;
                        }
                        
@@ -151,7 +151,7 @@ PHPAPI php_url *php_url_parse(char *str)
                p = e + 1;
                pp = p;
                
-               while (pp-p < 6 && isdigit((int)*(unsigned char *)pp)) {
+               while (pp-p < 6 && isdigit(pp)) {
                        pp++;
                }
                
@@ -457,7 +457,7 @@ PHPAPI int php_url_decode(char *str, int len)
        while (len--) {
                if (*data == '+')
                        *dest = ' ';
-               else if (*data == '%' && len >= 2 && isxdigit((int) *(unsigned char *)(data + 1)) && isxdigit((int) *(unsigned char *)(data + 2))) {
+               else if (*data == '%' && len >= 2 && isxdigit((int) *(data + 1)) && isxdigit((int) *(data + 2))) {
 #ifndef CHARSET_EBCDIC
                        *dest = (char) php_htoi(data + 1);
 #else