Avoid warnings about constness
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Mon, 29 Feb 2016 20:21:43 +0000 (21:21 +0100)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Mon, 29 Feb 2016 20:23:10 +0000 (21:23 +0100)
For recent versions these warnings disappear, because lots of
functions are constified. Here we hot-fix it just for the backporters
compiler.

src/src/environment.c

index aaa84f8172a0c9c66cfec98b1444d87931867e6f..673d2e609ba2195217585762f8b60e342d4946a6 100644 (file)
@@ -31,7 +31,7 @@ else if (Ustrcmp(keep_environment, "*") != 0)
     {
     uschar *name = string_copyn(*p, US Ustrchr(*p, '=') - *p);
 
-    if (OK != match_isinlist(name, CUSS &keep_environment,
+    if (OK != match_isinlist(name, USS &keep_environment,
         0, NULL, NULL, MCL_NOEXPAND, FALSE, NULL))
       if (unsetenv(CS name) < 0) return FALSE;
       else /* nothing */;
@@ -45,7 +45,7 @@ if (add_environment)
   {
     uschar *p;
     int sep = 0;
-    const uschar* envlist = add_environment;
+    uschar* envlist = add_environment;
     while ((p = string_nextinlist(&envlist, &sep, NULL, 0)))
         putenv(CS p);
   }