summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2016-01-27 06:38:03 +0000
committerdteske <dteske@FreeBSD.org>2016-01-27 06:38:03 +0000
commit6cd3ba3ca25ace7d71d9c240e79b28c66017731c (patch)
treeb5607df8f797c02584d570d665a9e0e4b34f9677 /usr.sbin
parent87d8d35364c7ac4fdec753d36efbd3991e493a4c (diff)
downloadFreeBSD-src-6cd3ba3ca25ace7d71d9c240e79b28c66017731c.zip
FreeBSD-src-6cd3ba3ca25ace7d71d9c240e79b28c66017731c.tar.gz
MFC 293617,294669: Minor fixes
r293617: Fix improper duration for f_dialog_pause() API r294669: Fix a typo in a comment
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bsdconfig/share/dialog.subr1
-rw-r--r--usr.sbin/bsdconfig/share/strings.subr2
2 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/bsdconfig/share/dialog.subr b/usr.sbin/bsdconfig/share/dialog.subr
index d7c2d2c..1e63aec 100644
--- a/usr.sbin/bsdconfig/share/dialog.subr
+++ b/usr.sbin/bsdconfig/share/dialog.subr
@@ -1605,7 +1605,6 @@ f_dialog_pause()
$height $width
else
[ $duration -gt 0 ] && duration=$(( $duration - 1 ))
- [ $duration -gt 1 ] && duration=$(( $duration - 1 ))
height=$(( $height + 3 )) # Add height for progress bar
$DIALOG \
--title "$DIALOG_TITLE" \
diff --git a/usr.sbin/bsdconfig/share/strings.subr b/usr.sbin/bsdconfig/share/strings.subr
index 487e061..e624fb5 100644
--- a/usr.sbin/bsdconfig/share/strings.subr
+++ b/usr.sbin/bsdconfig/share/strings.subr
@@ -110,7 +110,7 @@ f_sprintf()
# Example 2:
#
# limit=12 format="%s %s"
-# format_args=" 'doghouse' 'foxhound' "
+# format_args=" 'doghouse' 'fox' "
# # even more spaces added to illustrate escape-method
# f_vsnprintf foo $limit "$format" "$format_args" # foo=[doghouse fox]
#
OpenPOWER on IntegriCloud