From b84b22a0cdc9514eb9f19ba13f34e2be257fd446 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 1 Sep 2014 23:54:09 +0200 Subject: [PATCH] gui: Make gsu_menu() private. Its single caller is _browse(), which is a private function as well. This patch prepends an underscore to the function name to indicate that the function is not supposed to be called by application code. --- gui | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui b/gui index 958c315..b0d7007 100644 --- a/gui +++ b/gui @@ -54,7 +54,7 @@ gsu_msgbox() rm -f "$tmp" } -gsu_menu() +_gsu_menu() { local header="${1:-root}" local items="$2" @@ -108,7 +108,7 @@ _browse() local tree="$2" subtree="$3" while :; do - gsu_menu "$header" "$subtree" + _gsu_menu "$header" "$subtree" (($ret != 0)) && return [[ -z "$result" ]] && return if [[ "${result%/}" != "$result" ]]; then -- 2.39.2