summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-11-27 07:28:15 +0000
committerkris <kris@FreeBSD.org>2000-11-27 07:28:15 +0000
commit1f7d1d4b1f695ef031b02bff89e0fab34ec4e6ce (patch)
tree4f78c762c54f56ab31d1b77fe0f2bf055ab1dc85 /sbin
parentea5b149e3e8546375613757fc810fde65f71b914 (diff)
downloadFreeBSD-src-1f7d1d4b1f695ef031b02bff89e0fab34ec4e6ce.zip
FreeBSD-src-1f7d1d4b1f695ef031b02bff89e0fab34ec4e6ce.tar.gz
Fix format string warnings
Diffstat (limited to 'sbin')
-rw-r--r--sbin/camcontrol/camcontrol.c6
1 files changed, 3 insertions, 3 deletions
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);
OpenPOWER on IntegriCloud