Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-10]: src/etc Pull up following revision(s) (requested by jakllsch...



details:   https://anonhg.NetBSD.org/src/rev/8bcb0c64767a
branches:  netbsd-10
changeset: 373022:8bcb0c64767a
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Jan 13 19:08:30 2023 +0000

description:
Pull up following revision(s) (requested by jakllsch in ticket #47):

        etc/MAKEDEV.tmpl: revision 1.233

fix hexprint function

diffstat:

 etc/MAKEDEV.tmpl |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r c507c9e0bb37 -r 8bcb0c64767a etc/MAKEDEV.tmpl
--- a/etc/MAKEDEV.tmpl  Fri Jan 13 19:05:25 2023 +0000
+++ b/etc/MAKEDEV.tmpl  Fri Jan 13 19:08:30 2023 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#      $NetBSD: MAKEDEV.tmpl,v 1.232 2022/09/21 18:55:21 wiz Exp $
+#      $NetBSD: MAKEDEV.tmpl,v 1.232.2.1 2023/01/13 19:08:30 martin Exp $
 #
 # Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -362,7 +362,7 @@
        hex=
        set -- 0 1 2 3 4 5 6 7 8 9 a b c d e f
        while [ "$val" -gt 0 ]; do
-               eval hex=\$$(($val % 16 + 1))\$hex
+               eval hex=\${$(($val % 16 + 1))}\$hex
                val="$(($val / 16))"
        done
        echo "${hex:-0}"



Home | Main Index | Thread Index | Old Index