]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Constify pointers in ap_expr lookup tables, as well as the already
authorJoe Orton <jorton@apache.org>
Mon, 4 May 2020 10:48:55 +0000 (10:48 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 4 May 2020 10:48:55 +0000 (10:48 +0000)
commit58c4c85ff70868abeda9edc46f2ef68f934f6812
tree95302e3af675f34753ab99c6d6ca6a2c316d2419
parentccc38eab462e11a50d9ac4de4b64f3845ded60de
Constify pointers in ap_expr lookup tables, as well as the already
const pointed-to strings.  ~1/2Kb moves to r/o text section, size(1)
diff:

    text           data     bss     dec     hex filename
- 667519          18384   13952  699855   aadcf httpd
+ 668015          17864   13952  699831   aadb7 httpd

* server/util_expr_eval.c
  [*_var_names, expr_provider_multi]: Mark pointers in name
  lists as const.
  (core_expr_lookup): Adjust accordingly.

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