Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30fa772
)
Have rule_strcmp() accept and return a uchar*.
author
Wayne Davison
<wayned@samba.org>
Sun, 20 Feb 2005 17:04:53 +0000
(17:04 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sun, 20 Feb 2005 17:04:53 +0000
(17:04 +0000)
exclude.c
patch
|
blob
|
blame
|
history
diff --git
a/exclude.c
b/exclude.c
index
9455609
..
fa11e44
100644
(file)
--- a/
exclude.c
+++ b/
exclude.c
@@
-621,9
+621,9
@@
int check_filter(struct filter_list_struct *listp, char *name, int name_is_dir)
#define RULE_STRCMP(s,r) rule_strcmp((s), (r), sizeof (r) - 1)
-static const
char *rule_strcmp(const
char *str, const char *rule, int rule_len)
+static const
uchar *rule_strcmp(const u
char *str, const char *rule, int rule_len)
{
- if (strncmp(str, rule, rule_len) != 0)
+ if (strncmp(
(char*)
str, rule, rule_len) != 0)
return NULL;
if (isspace(str[rule_len]) || str[rule_len] == '_' || !str[rule_len])
return str + rule_len - 1;