summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig/share/keymap.subr
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bsdconfig/share/keymap.subr')
-rw-r--r--usr.sbin/bsdconfig/share/keymap.subr5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bsdconfig/share/keymap.subr b/usr.sbin/bsdconfig/share/keymap.subr
index b2e615a..39b6b54 100644
--- a/usr.sbin/bsdconfig/share/keymap.subr
+++ b/usr.sbin/bsdconfig/share/keymap.subr
@@ -44,6 +44,7 @@ f_include $BSDCFG_SHARE/struct.subr
############################################################ GLOBALS
KEYMAPS=
+NKEYMAPS=0
# A "keymap" from kbdmap's point of view
f_struct_define KEYMAP \
@@ -254,8 +255,8 @@ case "$KEYMAP_SELF_SCAN_ALL" in
*) f_keymap_get_all
esac
-f_dprintf "%s: Found %u keymap file(s)." keymap.subr \
- "$( set -- $KEYMAPS; echo $# )"
+f_count NKEYMAPS $KEYMAPS
+f_dprintf "%s: Found %u keymap file(s)." keymap.subr $NKEYMAPS
f_dprintf "%s: Successfully loaded." keymap.subr
OpenPOWER on IntegriCloud