diff options
author | mjacob <mjacob@FreeBSD.org> | 2001-07-04 18:51:58 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2001-07-04 18:51:58 +0000 |
commit | b8be3ffb7d0a6e59a7aa48407cff78ba76354a2d (patch) | |
tree | d441c64e9499a0a4d9502488a46078f1755a86d2 /sys/dev/isp/isp_pci.c | |
parent | 73ae9f3f2c91ea18c4594ef99da7be263de2a8a5 (diff) | |
download | FreeBSD-src-b8be3ffb7d0a6e59a7aa48407cff78ba76354a2d.zip FreeBSD-src-b8be3ffb7d0a6e59a7aa48407cff78ba76354a2d.tar.gz |
Some possibly helpful casts.
Diffstat (limited to 'sys/dev/isp/isp_pci.c')
-rw-r--r-- | sys/dev/isp/isp_pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index 7935a24..887841c 100644 --- a/sys/dev/isp/isp_pci.c +++ b/sys/dev/isp/isp_pci.c @@ -551,7 +551,7 @@ isp_pci_attach(device_t dev) sptr = 0; if (resource_string_value(device_get_name(dev), device_get_unit(dev), - "topology", &sptr) == 0 && sptr != 0) { + "topology", (const char **) &sptr) == 0 && sptr != 0) { if (strcmp(sptr, "lport") == 0) { isp->isp_confopts |= ISP_CFG_LPORT; } else if (strcmp(sptr, "nport") == 0) { @@ -573,7 +573,7 @@ isp_pci_attach(device_t dev) */ sptr = 0; tval = resource_string_value(device_get_name(dev), device_get_unit(dev), - "portwwn", &sptr); + "portwwn", (const char **) &sptr); if (tval == 0 && sptr != 0 && *sptr++ == 'w') { char *eptr = 0; isp->isp_osinfo.default_port_wwn = strtouq(sptr, &eptr, 16); @@ -590,7 +590,7 @@ isp_pci_attach(device_t dev) sptr = 0; tval = resource_string_value(device_get_name(dev), device_get_unit(dev), - "nodewwn", &sptr); + "nodewwn", (const char **) &sptr); if (tval == 0 && sptr != 0 && *sptr++ == 'w') { char *eptr = 0; isp->isp_osinfo.default_node_wwn = strtouq(sptr, &eptr, 16); |