aboutsummaryrefslogtreecommitdiffstats
path: root/token.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-11-09 02:39:29 +0000
committerWayne Davison <wayned@samba.org>2006-11-09 02:39:29 +0000
commit2dc7b8bd0e8d4a2d91334b9bb458df146b1700e8 (patch)
tree9d7c2bdec0e7a57c0928a3656b8353b1f113d949 /token.c
parente0930845ce339fc51f607ba19bc40a8685118b91 (diff)
downloadandroid_external_rsync-2dc7b8bd0e8d4a2d91334b9bb458df146b1700e8.tar.gz
android_external_rsync-2dc7b8bd0e8d4a2d91334b9bb458df146b1700e8.tar.bz2
android_external_rsync-2dc7b8bd0e8d4a2d91334b9bb458df146b1700e8.zip
Got rid of type-casting into isFOO() and toFOO() functions by
using static inline functions that take a signed char pointer.
Diffstat (limited to 'token.c')
-rw-r--r--token.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/token.c b/token.c
index d3cee049..1ccacbe2 100644
--- a/token.c
+++ b/token.c
@@ -49,8 +49,8 @@ void set_compression(char *fname)
continue;
}
do {
- if (isupper(*(unsigned char *)f))
- *t++ = tolower(*(unsigned char *)f);
+ if (isUpper(f))
+ *t++ = toLower(f);
else
*t++ = *f;
} while (*++f != ' ' && *f);