summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port_socket.c
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-03-23 21:14:08 +0000
committerAndrew Clayton <a.clayton@nginx.com>2023-03-28 23:15:28 +0100
commit5d0f586d56da625bc7bcc3ad6d4e3445eeac0fa3 (patch)
tree6ab9e3fbce912d54e5496ba5bac234e5725df43a /src/nxt_port_socket.c
parentaa0009f8dcecfefd3c123baa316c2f86d3525f8c (diff)
downloadunit-5d0f586d56da625bc7bcc3ad6d4e3445eeac0fa3.tar.gz
unit-5d0f586d56da625bc7bcc3ad6d4e3445eeac0fa3.tar.bz2
Add NXT_CONF_MAP_BOOL.
When adding a boolean config option, this is of type NXT_CONF_VALUE_BOOLEAN, however when mapping such an entry to a structure member via nxt_conf_map_object() this is done as a NXT_CONF_MAP_INT8. It took a bit of head scratching to find out that it should have been a NXT_CONF_MAP_INT8 and not a NXT_CONF_MAP_INT. Introduce a new map type of NXT_CONF_MAP_BOOL that will eventually replace NXT_CONF_MAP_INT8 for representing booleans... We use the short form _BOOL as that matches the naming convention of the other types in nxt_conf_map_type_t. This is part of a set of patches and eventually NXT_CONF_MAP_BOOL will simply replace NXT_CONF_MAP_INT8. Reviewed-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/nxt_port_socket.c')
0 files changed, 0 insertions, 0 deletions