diff options
author | dim <dim@FreeBSD.org> | 2011-12-16 22:35:19 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-12-16 22:35:19 +0000 |
commit | e91eea2c9e594c09273e1996154a14f311b08f8d (patch) | |
tree | b46c53a3865dd955c07845ed7b228c791e103d51 | |
parent | 161a99dd74a17b5638f334ba77c4091689279d62 (diff) | |
download | FreeBSD-src-e91eea2c9e594c09273e1996154a14f311b08f8d.zip FreeBSD-src-e91eea2c9e594c09273e1996154a14f311b08f8d.tar.gz |
In sbin/camcontrol/camcontrol.c, fix a few warnings about format strings
not being literals.
MFC after: 1 week
-rw-r--r-- | sbin/camcontrol/camcontrol.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index b801823..ce12926 100644 --- a/sbin/camcontrol/camcontrol.c +++ b/sbin/camcontrol/camcontrol.c @@ -2506,7 +2506,7 @@ scsicmd(struct cam_device *device, int argc, char **argv, char *combinedopt, if (((retval = cam_send_ccb(device, ccb)) < 0) || ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)) { - const char *warnstr = "error sending command"; + const char warnstr[] = "error sending command"; if (retval < 0) warn(warnstr); @@ -4449,7 +4449,7 @@ smpcmd(struct cam_device *device, int argc, char **argv, char *combinedopt, if (((retval = cam_send_ccb(device, ccb)) < 0) || ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)) { - const char *warnstr = "error sending command"; + const char warnstr[] = "error sending command"; if (retval < 0) warn(warnstr); @@ -4567,7 +4567,7 @@ try_long: if (((retval = cam_send_ccb(device, ccb)) < 0) || ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)) { - const char *warnstr = "error sending command"; + const char warnstr[] = "error sending command"; if (retval < 0) warn(warnstr); @@ -4872,7 +4872,7 @@ smpphycontrol(struct cam_device *device, int argc, char **argv, if (((retval = cam_send_ccb(device, ccb)) < 0) || ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)) { - const char *warnstr = "error sending command"; + const char warnstr[] = "error sending command"; if (retval < 0) warn(warnstr); @@ -4954,7 +4954,7 @@ smpmaninfo(struct cam_device *device, int argc, char **argv, if (((retval = cam_send_ccb(device, ccb)) < 0) || ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)) { - const char *warnstr = "error sending command"; + const char warnstr[] = "error sending command"; if (retval < 0) warn(warnstr); @@ -5351,7 +5351,7 @@ smpphylist(struct cam_device *device, int argc, char **argv, if (((retval = cam_send_ccb(device, ccb)) < 0) || ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)) { - const char *warnstr = "error sending command"; + const char warnstr[] = "error sending command"; if (retval < 0) warn(warnstr); @@ -5431,7 +5431,7 @@ smpphylist(struct cam_device *device, int argc, char **argv, if (((retval = cam_send_ccb(device, ccb)) < 0) || (((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) && (disresponse->function_result != SMP_FR_PHY_VACANT))) { - const char *warnstr = "error sending command"; + const char warnstr[] = "error sending command"; if (retval < 0) warn(warnstr); |