diff options
author | 2010-11-16 19:54:58 +0000 | |
---|---|---|
committer | 2010-11-16 19:54:58 +0000 | |
commit | f8c0903a5993b205f5b4f05976b67f4a7067035c (patch) | |
tree | 6cf0159d2e2541230938af1fc86c8ec92aa77913 | |
parent | If the interface address referenced by a cloning route did not point (diff) | |
download | wireguard-openbsd-f8c0903a5993b205f5b4f05976b67f4a7067035c.tar.xz wireguard-openbsd-f8c0903a5993b205f5b4f05976b67f4a7067035c.zip |
- add a define for CMDBUFLEN, and use it for scsireq.cmd
ok krw@
-rw-r--r-- | sys/sys/scsiio.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/scsiio.h b/sys/sys/scsiio.h index 553184bf338..a7c1dbdf61f 100644 --- a/sys/sys/scsiio.h +++ b/sys/sys/scsiio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiio.h,v 1.8 2006/11/27 18:32:33 dlg Exp $ */ +/* $OpenBSD: scsiio.h,v 1.9 2010/11/16 19:54:58 jasper Exp $ */ /* $NetBSD: scsiio.h,v 1.3 1994/06/29 06:45:09 cgd Exp $ */ #ifndef _SYS_SCSIIO_H_ @@ -9,11 +9,12 @@ #include <sys/ioctl.h> #define SENSEBUFLEN 48 +#define CMDBUFLEN 16 typedef struct scsireq { u_long flags; /* info about the request status and type */ u_long timeout; - u_char cmd[16]; /* 12 is actually the max */ + u_char cmd[CMDBUFLEN]; u_char cmdlen; caddr_t databuf; /* address in user space of buffer */ u_long datalen; /* size of user buffer (request) */ |