From 1f7d1d4b1f695ef031b02bff89e0fab34ec4e6ce Mon Sep 17 00:00:00 2001 From: kris Date: Mon, 27 Nov 2000 07:28:15 +0000 Subject: Fix format string warnings --- sbin/camcontrol/camcontrol.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sbin') diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index 892fb4a..ec42053 100644 --- a/sbin/camcontrol/camcontrol.c +++ b/sbin/camcontrol/camcontrol.c @@ -859,7 +859,7 @@ scsixferrate(struct cam_device *device) if (((retval = cam_send_ccb(device, ccb)) < 0) || ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)) { - char *error_string = "error getting transfer settings"; + const char error_string[] = "error getting transfer settings"; if (retval < 0) warn(error_string); @@ -986,7 +986,7 @@ parse_btl(char *tstr, int *bus, int *target, int *lun, cam_argmask *arglist) static int dorescan_or_reset(int argc, char **argv, int rescan) { - static const char *must = + static const char must[] = "you must specify a bus, or a bus:target:lun to %s"; int rv, error = 0; int bus = -1, target = -1, lun = -1; @@ -2822,7 +2822,7 @@ scsiformat(struct cam_device *device, int argc, char **argv, if (((retval = cam_send_ccb(device, ccb)) < 0) || ((immediate == 0) && ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP))) { - char *errstr = "error sending format command"; + const char errstr[] = "error sending format command"; if (retval < 0) warn(errstr); -- cgit v1.1