projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
aaeeb41
)
Declare pcrs_get_delimiter()'s delimiters[] static const
author
Fabian Keil
<fk@fabiankeil.de>
Thu, 24 May 2012 15:04:34 +0000
(15:04 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Thu, 24 May 2012 15:04:34 +0000
(15:04 +0000)
pcrs.c
patch
|
blob
|
history
diff --git
a/pcrs.c
b/pcrs.c
index
52d7b90
..
89de9bc
100644
(file)
--- a/
pcrs.c
+++ b/
pcrs.c
@@
-1,4
+1,4
@@
-const char pcrs_rcs[] = "$Id: pcrs.c,v 1.4
0 2012/03/09 17:55:50
fabiankeil Exp $";
+const char pcrs_rcs[] = "$Id: pcrs.c,v 1.4
1 2012/05/24 15:02:38
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/pcrs.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/pcrs.c,v $
@@
-997,8
+997,8
@@
char pcrs_get_delimiter(const char *string)
* Some characters that are unlikely to
* be part of pcrs replacement strings.
*/
* Some characters that are unlikely to
* be part of pcrs replacement strings.
*/
- char delimiters[] = "><#+*~%^-:;!@";
- char *d = delimiters;
+
static const
char delimiters[] = "><#+*~%^-:;!@";
+ c
onst c
har *d = delimiters;
/* Take the first delimiter that isn't part of the string */
while (*d && NULL != strchr(string, *d))
/* Take the first delimiter that isn't part of the string */
while (*d && NULL != strchr(string, *d))