Commit 61cb830b authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

ntdll: Constify some variables.

parent 87791cfe
...@@ -1097,7 +1097,7 @@ out_now: ...@@ -1097,7 +1097,7 @@ out_now:
return status; return status;
} }
static NTSTATUS xmit_immediate(HANDLE hDevice, int fd, char* ptr) static NTSTATUS xmit_immediate(HANDLE hDevice, int fd, const char* ptr)
{ {
/* FIXME: not perfect as it should bypass the in-queue */ /* FIXME: not perfect as it should bypass the in-queue */
WARN("(%p,'%c') not perfect!\n", hDevice, *ptr); WARN("(%p,'%c') not perfect!\n", hDevice, *ptr);
......
...@@ -97,7 +97,7 @@ static NTSTATUS TAPE_GetStatus( int error ) ...@@ -97,7 +97,7 @@ static NTSTATUS TAPE_GetStatus( int error )
/****************************************************************** /******************************************************************
* TAPE_CreatePartition * TAPE_CreatePartition
*/ */
static NTSTATUS TAPE_CreatePartition( int fd, TAPE_CREATE_PARTITION *data ) static NTSTATUS TAPE_CreatePartition( int fd, const TAPE_CREATE_PARTITION *data )
{ {
#ifdef HAVE_SYS_MTIO_H #ifdef HAVE_SYS_MTIO_H
struct mtop cmd; struct mtop cmd;
...@@ -139,7 +139,7 @@ static NTSTATUS TAPE_CreatePartition( int fd, TAPE_CREATE_PARTITION *data ) ...@@ -139,7 +139,7 @@ static NTSTATUS TAPE_CreatePartition( int fd, TAPE_CREATE_PARTITION *data )
/****************************************************************** /******************************************************************
* TAPE_Erase * TAPE_Erase
*/ */
static NTSTATUS TAPE_Erase( int fd, TAPE_ERASE *data ) static NTSTATUS TAPE_Erase( int fd, const TAPE_ERASE *data )
{ {
#ifdef HAVE_SYS_MTIO_H #ifdef HAVE_SYS_MTIO_H
struct mtop cmd; struct mtop cmd;
...@@ -300,7 +300,7 @@ static NTSTATUS TAPE_GetPosition( int fd, ULONG type, TAPE_GET_POSITION *data ) ...@@ -300,7 +300,7 @@ static NTSTATUS TAPE_GetPosition( int fd, ULONG type, TAPE_GET_POSITION *data )
/****************************************************************** /******************************************************************
* TAPE_Prepare * TAPE_Prepare
*/ */
static NTSTATUS TAPE_Prepare( int fd, TAPE_PREPARE *data ) static NTSTATUS TAPE_Prepare( int fd, const TAPE_PREPARE *data )
{ {
#ifdef HAVE_SYS_MTIO_H #ifdef HAVE_SYS_MTIO_H
struct mtop cmd; struct mtop cmd;
...@@ -353,7 +353,7 @@ static NTSTATUS TAPE_Prepare( int fd, TAPE_PREPARE *data ) ...@@ -353,7 +353,7 @@ static NTSTATUS TAPE_Prepare( int fd, TAPE_PREPARE *data )
/****************************************************************** /******************************************************************
* TAPE_SetDriveParams * TAPE_SetDriveParams
*/ */
static NTSTATUS TAPE_SetDriveParams( int fd, TAPE_SET_DRIVE_PARAMETERS *data ) static NTSTATUS TAPE_SetDriveParams( int fd, const TAPE_SET_DRIVE_PARAMETERS *data )
{ {
#if defined(HAVE_SYS_MTIO_H) && defined(MTCOMPRESSION) #if defined(HAVE_SYS_MTIO_H) && defined(MTCOMPRESSION)
struct mtop cmd; struct mtop cmd;
...@@ -379,7 +379,7 @@ static NTSTATUS TAPE_SetDriveParams( int fd, TAPE_SET_DRIVE_PARAMETERS *data ) ...@@ -379,7 +379,7 @@ static NTSTATUS TAPE_SetDriveParams( int fd, TAPE_SET_DRIVE_PARAMETERS *data )
/****************************************************************** /******************************************************************
* TAPE_SetMediaParams * TAPE_SetMediaParams
*/ */
static NTSTATUS TAPE_SetMediaParams( int fd, TAPE_SET_MEDIA_PARAMETERS *data ) static NTSTATUS TAPE_SetMediaParams( int fd, const TAPE_SET_MEDIA_PARAMETERS *data )
{ {
#ifdef HAVE_SYS_MTIO_H #ifdef HAVE_SYS_MTIO_H
struct mtop cmd; struct mtop cmd;
...@@ -399,7 +399,7 @@ static NTSTATUS TAPE_SetMediaParams( int fd, TAPE_SET_MEDIA_PARAMETERS *data ) ...@@ -399,7 +399,7 @@ static NTSTATUS TAPE_SetMediaParams( int fd, TAPE_SET_MEDIA_PARAMETERS *data )
/****************************************************************** /******************************************************************
* TAPE_SetPosition * TAPE_SetPosition
*/ */
static NTSTATUS TAPE_SetPosition( int fd, TAPE_SET_POSITION *data ) static NTSTATUS TAPE_SetPosition( int fd, const TAPE_SET_POSITION *data )
{ {
#ifdef HAVE_SYS_MTIO_H #ifdef HAVE_SYS_MTIO_H
struct mtop cmd; struct mtop cmd;
...@@ -470,7 +470,7 @@ static NTSTATUS TAPE_SetPosition( int fd, TAPE_SET_POSITION *data ) ...@@ -470,7 +470,7 @@ static NTSTATUS TAPE_SetPosition( int fd, TAPE_SET_POSITION *data )
/****************************************************************** /******************************************************************
* TAPE_WriteMarks * TAPE_WriteMarks
*/ */
static NTSTATUS TAPE_WriteMarks( int fd, TAPE_WRITE_MARKS *data ) static NTSTATUS TAPE_WriteMarks( int fd, const TAPE_WRITE_MARKS *data )
{ {
#ifdef HAVE_SYS_MTIO_H #ifdef HAVE_SYS_MTIO_H
struct mtop cmd; struct mtop cmd;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment