Deleted Added
1
2/*
3 * Copyright (C) Valentin V. Bartenev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8#include <nxt_conf.h>

--- 1610 unchanged lines hidden (view full) ---

1619 return NXT_OK;
1620}
1621
1622
1623static nxt_int_t
1624nxt_conf_vldt_share(nxt_conf_validation_t *vldt, nxt_conf_value_t *value,
1625 void *data)
1626{
1627 if (nxt_conf_type(value) == NXT_CONF_ARRAY) {
1628 if (nxt_conf_array_elements_count(value) == 0) {
1629 return nxt_conf_vldt_error(vldt, "The \"share\" array "
1630 "must contain at least one element.");
1631 }
1632
1633 return nxt_conf_vldt_array_iterator(vldt, value,
1634 &nxt_conf_vldt_share_element);
1635 }
1636
1637 /* NXT_CONF_STRING */
1638
1639 return nxt_conf_vldt_share_element(vldt, value);
1640}
1641
1642
1643static nxt_int_t
1644nxt_conf_vldt_share_element(nxt_conf_validation_t *vldt,
1645 nxt_conf_value_t *value)
1646{

--- 1330 unchanged lines hidden ---