aboutsummaryrefslogtreecommitdiffstats
path: root/loadparm.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 /loadparm.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 'loadparm.c')
-rw-r--r--loadparm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/loadparm.c b/loadparm.c
index cdfff5f6..4c132670 100644
--- a/loadparm.c
+++ b/loadparm.c
@@ -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++;