Module Name:    src
Committed By:   martin
Date:           Fri Jan 13 19:08:30 UTC 2023

Modified Files:
        src/etc [netbsd-10]: MAKEDEV.tmpl

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

        etc/MAKEDEV.tmpl: revision 1.233

fix hexprint function


To generate a diff of this commit:
cvs rdiff -u -r1.232 -r1.232.2.1 src/etc/MAKEDEV.tmpl

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/MAKEDEV.tmpl
diff -u src/etc/MAKEDEV.tmpl:1.232 src/etc/MAKEDEV.tmpl:1.232.2.1
--- src/etc/MAKEDEV.tmpl:1.232	Wed Sep 21 18:55:21 2022
+++ src/etc/MAKEDEV.tmpl	Fri Jan 13 19:08:30 2023
@@ -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 @@ hexprint()
 	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}"

Reply via email to