diff options
author | Wayne Davison <wayned@samba.org> | 2006-11-09 02:39:29 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2006-11-09 02:39:29 +0000 |
commit | 2dc7b8bd0e8d4a2d91334b9bb458df146b1700e8 (patch) | |
tree | 9d7c2bdec0e7a57c0928a3656b8353b1f113d949 /loadparm.c | |
parent | e0930845ce339fc51f607ba19bc40a8685118b91 (diff) | |
download | android_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 'loadparm.c')
-rw-r--r-- | loadparm.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -524,12 +524,11 @@ static int strwicmp(char *psz1, char *psz2) /* sync the strings on first non-whitespace */ while (1) { - while (isspace(* (unsigned char *) psz1)) + while (isSpace(psz1)) psz1++; - while (isspace(* (unsigned char *) psz2)) + while (isSpace(psz2)) psz2++; - if (toupper(* (unsigned char *) psz1) != toupper(* (unsigned char *) psz2) - || *psz1 == '\0' || *psz2 == '\0') + if (toUpper(psz1) != toUpper(psz2) || *psz1 == '\0' || *psz2 == '\0') break; psz1++; psz2++; |