From 6eb3d4d6fc8f8ce6148ac912b10d67b14588a7db Mon Sep 17 00:00:00 2001 From: kn Date: Sun, 23 Oct 2022 08:00:10 +0000 Subject: [PATCH] Constify send/receive command tables Both only used for printf calls. OK gkoehler --- sys/arch/macppc/dev/pm_direct.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/macppc/dev/pm_direct.c b/sys/arch/macppc/dev/pm_direct.c index 78838fd6a93..fab3e394aad 100644 --- a/sys/arch/macppc/dev/pm_direct.c +++ b/sys/arch/macppc/dev/pm_direct.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pm_direct.c,v 1.32 2022/10/21 22:42:36 gkoehler Exp $ */ +/* $OpenBSD: pm_direct.c,v 1.33 2022/10/23 08:00:10 kn Exp $ */ /* $NetBSD: pm_direct.c,v 1.9 2000/06/08 22:10:46 tsubai Exp $ */ /* @@ -72,7 +72,7 @@ #endif /* these values shows that number of data returned after 'send' cmd is sent */ -signed char pm_send_cmd_type[] = { +const signed char pm_send_cmd_type[] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0x01, 0x01, -1, -1, -1, -1, -1, -1, @@ -108,7 +108,7 @@ signed char pm_send_cmd_type[] = { }; /* these values shows that number of data returned after 'receive' cmd is sent */ -signed char pm_receive_cmd_type[] = { +const signed char pm_receive_cmd_type[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, -1, -1, -1, -1, -1, -1, -1, -1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, -- 2.20.1