Module Name: src
Committed By: jakllsch
Date: Tue Feb 21 02:19:41 UTC 2012
Modified Files:
src/sbin/scsictl: extern.h scsi_subr.c
Log Message:
constify command data argument to scsi_command().
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sbin/scsictl/extern.h
cvs rdiff -u -r1.12 -r1.13 src/sbin/scsictl/scsi_subr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/scsictl/extern.h
diff -u src/sbin/scsictl/extern.h:1.6 src/sbin/scsictl/extern.h:1.7
--- src/sbin/scsictl/extern.h:1.6 Mon Apr 28 20:23:09 2008
+++ src/sbin/scsictl/extern.h Tue Feb 21 02:19:41 2012
@@ -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 c
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);
Index: src/sbin/scsictl/scsi_subr.c
diff -u src/sbin/scsictl/scsi_subr.c:1.12 src/sbin/scsictl/scsi_subr.c:1.13
--- src/sbin/scsictl/scsi_subr.c:1.12 Mon Apr 28 20:23:09 2008
+++ src/sbin/scsictl/scsi_subr.c Tue Feb 21 02:19:41 2012
@@ -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 200
#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;