projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e18c775
)
* remove stripslashes, its going into libcitadel.
author
Wilfried Göesgens
<willi@citadel.org>
Tue, 26 May 2009 19:57:59 +0000
(19:57 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Tue, 26 May 2009 19:57:59 +0000
(19:57 +0000)
citadel/citadel_dirs.c
patch
|
blob
|
history
diff --git
a/citadel/citadel_dirs.c
b/citadel/citadel_dirs.c
index 6aa74959b267d5689bca109c0fcf55db2ce03691..5d03536bc289e636f102642e0c26c9f82be7b877 100644
(file)
--- a/
citadel/citadel_dirs.c
+++ b/
citadel/citadel_dirs.c
@@
-74,32
+74,6
@@
char file_dspam_log[PATH_MAX] = "";
-void StripSlashes(char *Dir, int TrailingSlash)
-{
- char *a, *b;
-
- a = b = Dir;
-
- while (!IsEmptyStr(a)) {
- if (*a == '/') {
- while (*a == '/')
- a++;
- *b = '/';
- b++;
- }
- else {
- *b = *a;
- b++; a++;
- }
- }
- if ((TrailingSlash) && (*(b - 1) != '/')){
- *b = '/';
- b++;
- }
- *b = '\0';
-
-}
-
#define COMPUTE_DIRECTORY(SUBDIR) memcpy(dirbuffer,SUBDIR, sizeof dirbuffer);\
snprintf(SUBDIR,sizeof SUBDIR, "%s%s%s%s%s%s%s", \