diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2024-04-16 19:22:59 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2024-04-25 15:14:50 +0100 |
commit | e5bc299d7a55a66e1ecf54d35dcdd9448c49f3d4 (patch) | |
tree | ce39c4cc8a274bf5bfb2b821c04077aad442c4d1 /src/nxt_sha1.h | |
parent | 3fbca6ca672d40964812f5fe08b08c2dbb232cdd (diff) | |
download | unit-e5bc299d7a55a66e1ecf54d35dcdd9448c49f3d4.tar.gz unit-e5bc299d7a55a66e1ecf54d35dcdd9448c49f3d4.tar.bz2 |
configuration: Constify numerous pointers
Mark numerous function argument pointers as 'const' in the configuration
sub-system.
This also does the same with a few functions in
src/nxt_conf_validation.c that are required to accomplish the below,
attacking the rest is an exercise for another day...
While this is a worthwhile hardening exercise in its own right, the main
impetus for this is to 'constify' some local function variables which
are currently defined with 'static' storage class and turn them into
'static const', which will be done in a subsequent patch.
Reviewed-by: Zhidao HONG <z.hong@f5.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/nxt_sha1.h')
0 files changed, 0 insertions, 0 deletions