summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2000-12-30 20:09:26 +0000
committermjacob <mjacob@FreeBSD.org>2000-12-30 20:09:26 +0000
commit5901dfe396ac3bc4c32af5d316b92f7c99ac45c0 (patch)
tree0ca40ec9cf48d5e1348b8117d80093bcb217e064 /sys
parent70057689c95dcf6e9b837b98c5f0d88c39bc591d (diff)
downloadFreeBSD-src-5901dfe396ac3bc4c32af5d316b92f7c99ac45c0.zip
FreeBSD-src-5901dfe396ac3bc4c32af5d316b92f7c99ac45c0.tar.gz
Change the modification of what could be a const string. Apparently the
construct: char *foo; ... foo = "XXX"; ... foo[1] = 'Y'; is wrong. IT blew up on NetBSD-sparc64 because that platform write-protects constant strings.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isp/isp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c
index e493390..2ce3cb9 100644
--- a/sys/dev/isp/isp.c
+++ b/sys/dev/isp/isp.c
@@ -207,13 +207,12 @@ isp_reset(isp)
ISP_WRITE(isp, HCCR, HCCR_CMD_PAUSE);
if (IS_FC(isp)) {
- revname = "2X00";
switch (isp->isp_type) {
case ISP_HA_FC_2100:
- revname[1] = '1';
+ revname = "2100";
break;
case ISP_HA_FC_2200:
- revname[1] = '2';
+ revname = "2200";
break;
default:
break;
OpenPOWER on IntegriCloud