constify command data argument to scsi_command().

This commit is contained in:
jakllsch 2012-02-21 02:19:41 +00:00
parent f326ce849e
commit 1355b3bb87
2 changed files with 6 additions and 6 deletions

View File

@ -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.
@ -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);
/* 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_select(int, u_int8_t, void *, size_t);
void scsi_request_sense(int, void *, size_t);

View File

@ -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.
@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#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
@ -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')
void
scsi_command(int fd, void *cmd, size_t cmdlen, void *data, size_t datalen,
int timeout, int flags)
scsi_command(int fd, const void *cmd, size_t cmdlen,
void *data, size_t datalen, int timeout, int flags)
{
scsireq_t req;