Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Change a few #defines from octal to hex (pdp11 days a...



details:   https://anonhg.NetBSD.org/src/rev/808b018cabf5
branches:  trunk
changeset: 373916:808b018cabf5
user:      kre <kre%NetBSD.org@localhost>
date:      Sun Mar 19 17:45:29 2023 +0000

description:
Change a few #defines from octal to hex (pdp11 days are long gone).
Improve the layout of those definitions at the same time.

NFC.

diffstat:

 bin/sh/error.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r 9c19c05273ee -r 808b018cabf5 bin/sh/error.h
--- a/bin/sh/error.h    Sun Mar 19 17:26:12 2023 +0000
+++ b/bin/sh/error.h    Sun Mar 19 17:45:29 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: error.h,v 1.22 2019/02/04 11:16:41 kre Exp $   */
+/*     $NetBSD: error.h,v 1.23 2023/03/19 17:45:29 kre Exp $   */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -40,9 +40,9 @@
  * Types of operations (passed to the errmsg routine).
  */
 
-#define E_OPEN 01      /* opening a file */
-#define E_CREAT 02     /* creating a file */
-#define E_EXEC 04      /* executing a program */
+#define E_OPEN         0x1     /* opening a file */
+#define E_CREAT                0x2     /* creating a file */
+#define E_EXEC         0x4     /* executing a program */
 
 
 /*



Home | Main Index | Thread Index | Old Index