]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/filters/sed1.c: Mark private globals as static const.
authorJoe Orton <jorton@apache.org>
Tue, 17 Apr 2012 08:13:15 +0000 (08:13 +0000)
committerJoe Orton <jorton@apache.org>
Tue, 17 Apr 2012 08:13:15 +0000 (08:13 +0000)
  (command): Change p3 pointer to const.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1326984 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/sed1.c

index ddca3bdb6296355fc444e62e9642617163fadaf8..739e1ce9c1181f4a0301a5c9e16dc0e807bd0e4b 100644 (file)
@@ -25,7 +25,7 @@
 #include "apr_strings.h"
 #include "regexp.h"
 
-char    *trans[040]  = {
+static const char *const trans[040]  = {
     "\\01",
     "\\02",
     "\\03",
@@ -58,7 +58,7 @@ char    *trans[040]  = {
     "\\36",
     "\\37"
 };
-char rub[] = {"\\177"};
+static const char rub[] = {"\\177"};
 
 extern int sed_step(char *p1, char *p2, int circf, step_vars_storage *vars);
 static int substitute(sed_eval_t *eval, sed_reptr_t *ipc,
@@ -692,7 +692,8 @@ static apr_status_t command(sed_eval_t *eval, sed_reptr_t *ipc,
                             step_vars_storage *step_vars)
 {
     int    i;
-    char   *p1, *p2, *p3;
+    char   *p1, *p2;
+    const char *p3;
     int length;
     char sz[32]; /* 32 bytes enough to store 64 bit integer in decimal */
     apr_status_t rv = APR_SUCCESS;