constify command data argument to scsi_command().
This commit is contained in:
parent
f326ce849e
commit
1355b3bb87
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: extern.h,v 1.6 2008/04/28 20:23:09 martin Exp $ */
|
/* $NetBSD: extern.h,v 1.7 2012/02/21 02:19:41 jakllsch Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||||
|
@ -38,7 +38,7 @@ char *scsi_decode_sense(const unsigned char *, int, char *, size_t);
|
||||||
void scsi_print_sense(const char *, const scsireq_t *, int);
|
void scsi_print_sense(const char *, const scsireq_t *, int);
|
||||||
|
|
||||||
/* scsi_subr.c */
|
/* scsi_subr.c */
|
||||||
void scsi_command(int, void *, size_t, void *, size_t, int, int);
|
void scsi_command(int, const void *, size_t, void *, size_t, int, int);
|
||||||
void scsi_mode_sense(int, u_int8_t, u_int8_t, void *, size_t);
|
void scsi_mode_sense(int, u_int8_t, u_int8_t, void *, size_t);
|
||||||
void scsi_mode_select(int, u_int8_t, void *, size_t);
|
void scsi_mode_select(int, u_int8_t, void *, size_t);
|
||||||
void scsi_request_sense(int, void *, size_t);
|
void scsi_request_sense(int, void *, size_t);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: scsi_subr.c,v 1.12 2008/04/28 20:23:09 martin Exp $ */
|
/* $NetBSD: scsi_subr.c,v 1.13 2012/02/21 02:19:41 jakllsch Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
__RCSID("$NetBSD: scsi_subr.c,v 1.12 2008/04/28 20:23:09 martin Exp $");
|
__RCSID("$NetBSD: scsi_subr.c,v 1.13 2012/02/21 02:19:41 jakllsch Exp $");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -59,8 +59,8 @@ __RCSID("$NetBSD: scsi_subr.c,v 1.12 2008/04/28 20:23:09 martin Exp $");
|
||||||
#define STRVIS_ISWHITE(x) ((x) == ' ' || (x) == '\0' || (x) == (u_char)'\377')
|
#define STRVIS_ISWHITE(x) ((x) == ' ' || (x) == '\0' || (x) == (u_char)'\377')
|
||||||
|
|
||||||
void
|
void
|
||||||
scsi_command(int fd, void *cmd, size_t cmdlen, void *data, size_t datalen,
|
scsi_command(int fd, const void *cmd, size_t cmdlen,
|
||||||
int timeout, int flags)
|
void *data, size_t datalen, int timeout, int flags)
|
||||||
{
|
{
|
||||||
scsireq_t req;
|
scsireq_t req;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue