Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc fix hexprint function
details: https://anonhg.NetBSD.org/src/rev/d8c9665eea96
branches: trunk
changeset: 372827:d8c9665eea96
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Wed Dec 28 19:23:02 2022 +0000
description:
fix hexprint function
diffstat:
etc/MAKEDEV.tmpl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r cbab311f187f -r d8c9665eea96 etc/MAKEDEV.tmpl
--- a/etc/MAKEDEV.tmpl Wed Dec 28 18:34:33 2022 +0000
+++ b/etc/MAKEDEV.tmpl Wed Dec 28 19:23:02 2022 +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.233 2022/12/28 19:23:02 jakllsch 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