Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Jun 2013 23:05:01 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r251270 - in head/usr.sbin/bsdconfig: . networking/share
Message-ID:  <201306022305.r52N51l6089053@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Sun Jun  2 23:05:01 2013
New Revision: 251270
URL: http://svnweb.freebsd.org/changeset/base/251270

Log:
  Make some obvious consolidations in local declaration for readability.

Modified:
  head/usr.sbin/bsdconfig/bsdconfig
  head/usr.sbin/bsdconfig/networking/share/device.subr

Modified: head/usr.sbin/bsdconfig/bsdconfig
==============================================================================
--- head/usr.sbin/bsdconfig/bsdconfig	Sun Jun  2 23:02:56 2013	(r251269)
+++ head/usr.sbin/bsdconfig/bsdconfig	Sun Jun  2 23:05:01 2013	(r251270)
@@ -93,10 +93,9 @@ usage()
 	#
 	# Determine the maximum width of terminal/console
 	#
-	local max_size max_width
-	max_size=$( stty size 2> /dev/null )
+	local max_size="$( stty size 2> /dev/null )"
 	: ${max_size:="24 80"}
-	max_width="${max_size#*[$IFS]}"
+	local max_width="${max_size#*[$IFS]}"
 	f_dprintf "max_width=[%s]" "$max_width"
 
 	#

Modified: head/usr.sbin/bsdconfig/networking/share/device.subr
==============================================================================
--- head/usr.sbin/bsdconfig/networking/share/device.subr	Sun Jun  2 23:02:56 2013	(r251269)
+++ head/usr.sbin/bsdconfig/networking/share/device.subr	Sun Jun  2 23:05:01 2013	(r251270)
@@ -142,8 +142,7 @@ f_dialog_menu_netdev()
 	#
 	# Ask user to select an interface
 	#
-	local prompt
-	prompt="$msg_select_network_interface"
+	local prompt="$msg_select_network_interface"
 	local height width rows
 	eval f_dialog_menu_size height width rows \
 	                        \"\$DIALOG_TITLE\"     \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306022305.r52N51l6089053>