From ee9b5d3c6598839a78cc7d561529260c6eefa358 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 23 Apr 2019 15:51:07 -0400 Subject: parse_control_error(): Make "static" --- 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 # . -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 -- cgit v0.9.1