diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-12-09 02:46:20 +0100 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-05-16 10:27:07 +0200 |
commit | 5302faace297f2e9b104fbebafb46cc0521d2a5a (patch) | |
tree | 79b074afca91c54ba9f24383f7c3eb03bc789b7a /auto/echo/Makefile | |
parent | fa42d858a2967d49e1ee832b145dfcace89aeed7 (diff) | |
download | unit-5302faace297f2e9b104fbebafb46cc0521d2a5a.tar.gz unit-5302faace297f2e9b104fbebafb46cc0521d2a5a.tar.bz2 |
Renamed nxt_http_static_ctx_t field 'index' to 'share_idx'.
Having a configurable index filename will require adding an index
field to this structure. The most natural name for that field is
'index', so the current index field should be renamed to allow for
that. A sensible name is 'share_idx', since it's the index of the
shares array in 'nxt_http_static_conf_t'.
Instead of 'share_index' I opted for the shorter 'share_idx'.
Also, when 'index' allows an array of filenames in a following
commit, another similar variable 'index_idx' should be created,
and having a different prefix and suffix seems more readable than
for example 'index_index'.
Diffstat (limited to 'auto/echo/Makefile')
0 files changed, 0 insertions, 0 deletions