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.
This commit is contained in:
parent
b4660c3783
commit
56c6d0d775
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70516
@ -207,13 +207,12 @@ isp_reset(isp)
|
|||||||
ISP_WRITE(isp, HCCR, HCCR_CMD_PAUSE);
|
ISP_WRITE(isp, HCCR, HCCR_CMD_PAUSE);
|
||||||
|
|
||||||
if (IS_FC(isp)) {
|
if (IS_FC(isp)) {
|
||||||
revname = "2X00";
|
|
||||||
switch (isp->isp_type) {
|
switch (isp->isp_type) {
|
||||||
case ISP_HA_FC_2100:
|
case ISP_HA_FC_2100:
|
||||||
revname[1] = '1';
|
revname = "2100";
|
||||||
break;
|
break;
|
||||||
case ISP_HA_FC_2200:
|
case ISP_HA_FC_2200:
|
||||||
revname[1] = '2';
|
revname = "2200";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user