summaryrefslogtreecommitdiff
path: root/params.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 /params.c
parente0930845ce339fc51f607ba19bc40a8685118b91 (diff)
downloadrsync-2dc7b8bd0e8d4a2d91334b9bb458df146b1700e8.tar.gz
rsync-2dc7b8bd0e8d4a2d91334b9bb458df146b1700e8.tar.bz2
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 'params.c')
-rw-r--r--params.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/params.c b/params.c
index 04216877..e543cd75 100644
--- a/params.c
+++ b/params.c
@@ -165,7 +165,7 @@ static int Continuation( char *line, int pos )
*/
{
pos--;
- while( (pos >= 0) && isspace(((unsigned char *)line)[pos]) )
+ while( pos >= 0 && isSpace(line + pos) )
pos--;
return( ((pos >= 0) && ('\\' == line[pos])) ? pos : -1 );
@@ -387,7 +387,7 @@ static BOOL Parameter( FILE *InFile, BOOL (*pfunc)(char *, char *), int c )
c = 0;
else
{
- for( end = i; (end >= 0) && isspace(((unsigned char *) bufr)[end]); end-- )
+ for( end = i; end >= 0 && isSpace(bufr + end); end-- )
;
c = getc( InFile );
}