diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-23 15:51:07 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-23 15:51:07 (EDT) |
commit | ee9b5d3c6598839a78cc7d561529260c6eefa358 (patch) | |
tree | 5e370eda90245ed4086914c92d8099f2783f3865 | |
parent | f9b21f929116c9a8e0e34a83d38306b183166d95 (diff) |
parse_control_error(): Make "static"
-rw-r--r-- | src/control.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/control.sh b/src/control.sh index f9b1e08..38ba841 100644 --- a/src/control.sh +++ b/src/control.sh @@ -18,7 +18,7 @@ # along with the ProteanOS Development Kit. If not, see # <http://www.gnu.org/licenses/>. -parse_control_error() +_parse_control_error() { local file="${1}" local line_nr="${2}" @@ -75,7 +75,7 @@ parse_control() para_req_fields="$(printf "%s$(get_msg \ 'list_item_separator')" \ ${para_req_fields})" - parse_control_error \ + _parse_control_error \ "${file}" "${line_nr}" \ 'control_missing_fields' \ "${para_req_fields}" @@ -100,7 +100,7 @@ parse_control() value="${line#*:}" value="${value# }" if [ "x${name}" = 'x' -o "x${name}" = "x${line}" ]; then - parse_control_error "${file}" "${line_nr}" \ + _parse_control_error "${file}" "${line_nr}" \ 'control_bad_nv' continue fi @@ -112,7 +112,7 @@ parse_control() if [ "x${got_fields%${LF}${name}${LF}*}" != \ "x${got_fields}" ]; then # Duplicate field. - parse_control_error "${file}" "${line_nr}" \ + _parse_control_error "${file}" "${line_nr}" \ 'control_duplicate_field' \ "${name}" else @@ -123,7 +123,7 @@ parse_control() in_paragraph='true' if [ "x${name}" = 'x' ]; then # Expecting a "Name: Value" line. - parse_control_error "${file}" "${line_nr}" \ + _parse_control_error "${file}" "${line_nr}" \ 'control_found_continuation' continue fi |