svn commit: r251270 - in head/usr.sbin/bsdconfig: . networking/share
Devin Teske
dteske at FreeBSD.org
Sun Jun 2 23:05:02 UTC 2013
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\" \
More information about the svn-src-head
mailing list