diff options
author | mjacob <mjacob@FreeBSD.org> | 2000-12-30 20:09:26 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2000-12-30 20:09:26 +0000 |
commit | 5901dfe396ac3bc4c32af5d316b92f7c99ac45c0 (patch) | |
tree | 0ca40ec9cf48d5e1348b8117d80093bcb217e064 /sys/dev/isp | |
parent | 70057689c95dcf6e9b837b98c5f0d88c39bc591d (diff) | |
download | FreeBSD-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/dev/isp')
-rw-r--r-- | sys/dev/isp/isp.c | 5 |
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; |