summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2010-11-16 19:55:35 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2010-11-16 19:55:35 +0000
commit29500ee44e75ca6de09f9d001939f2b903bc7e6a (patch)
treea031840583aca2b204c33be828e2d7e1220cc531
parented982a8a1e584eba9c6f5f3f9ef7a8b379f9ed80 (diff)
- remove XXX here now that CMDBUFLEN is defined in scsiio.h
ok krw@
-rw-r--r--sbin/scsi/libscsi.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sbin/scsi/libscsi.c b/sbin/scsi/libscsi.c
index 9d362cd020c..7bebda2130e 100644
--- a/sbin/scsi/libscsi.c
+++ b/sbin/scsi/libscsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: libscsi.c,v 1.7 2009/11/12 16:08:17 deraadt Exp $ */
+/* $OpenBSD: libscsi.c,v 1.8 2010/11/16 19:55:34 jasper Exp $ */
/* Copyright (c) 1994 HD Associates
* (contact: dufault@hda.com)
@@ -680,10 +680,6 @@ do_encode(u_char *buff, size_t vec_max, size_t *used,
return encoded;
}
-/* XXX: Should be a constant in scsiio.h
- */
-#define CMD_BUFLEN 16
-
scsireq_t *
scsireq_build(scsireq_t *scsireq, u_long datalen, caddr_t databuf,
u_long flags, char *cmd_spec, ...)
@@ -714,7 +710,7 @@ scsireq_build(scsireq_t *scsireq, u_long datalen, caddr_t databuf,
va_start(ap, cmd_spec);
- if (do_encode(scsireq->cmd, CMD_BUFLEN, &cmdlen, 0, 0, cmd_spec, ap) == -1)
+ if (do_encode(scsireq->cmd, CMDBUFLEN, &cmdlen, 0, 0, cmd_spec, ap) == -1)
return 0;
va_end (ap);
@@ -750,7 +746,7 @@ scsireq_t
scsireq->flags = flags;
}
- if (do_encode(scsireq->cmd, CMD_BUFLEN, &cmdlen, arg_get, gethook,
+ if (do_encode(scsireq->cmd, CMDBUFLEN, &cmdlen, arg_get, gethook,
cmd_spec, ap) == -1)
return 0;