From: Andre Noll Date: Mon, 1 Sep 2014 21:54:09 +0000 (+0200) Subject: gui: Make gsu_menu() private. X-Git-Url: http://git.tuebingen.mpg.de/?p=gsu.git;a=commitdiff_plain;h=b84b22a0cdc9514eb9f19ba13f34e2be257fd446 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. --- 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