Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339471
b: refs/heads/master
c: 1cc9bd6
h: refs/heads/master
i:
  339469: 3ca8dff
  339467: 184f3c3
  339463: b13c7fb
  339455: 05e8cd9
v: v3
  • Loading branch information
Steve French committed Dec 5, 2012
1 parent 4ef93ab commit 6366492
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b979aaa1777259330435c47f900833dabe9189e8
refs/heads/master: 1cc9bd68617f2a92dcd6e4398288341d16cfb5c1
13 changes: 4 additions & 9 deletions trunk/fs/cifs/cifsglob.h
Original file line number Diff line number Diff line change
Expand Up @@ -1064,21 +1064,16 @@ static inline char CIFS_DIR_SEP(const struct cifs_sb_info *cifs_sb)
static inline void
convert_delimiter(char *path, char delim)
{
int i;
char old_delim;

if (path == NULL)
return;
char old_delim, *pos;

if (delim == '/')
old_delim = '\\';
else
old_delim = '/';

for (i = 0; path[i] != '\0'; i++) {
if (path[i] == old_delim)
path[i] = delim;
}
pos = path;
while ((pos = strchr(pos, old_delim)))
*pos = delim;
}

#ifdef CONFIG_CIFS_STATS
Expand Down

0 comments on commit 6366492

Please sign in to comment.