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 /params.c | |
parent | e0930845ce339fc51f607ba19bc40a8685118b91 (diff) | |
download | rsync-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 ); } |