summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rmt.h2
-rw-r--r--lib/rtapelib.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/rmt.h b/lib/rmt.h
index 721061c..45216fe 100644
--- a/lib/rmt.h
+++ b/lib/rmt.h
@@ -25,7 +25,7 @@ int rmt_close__ (int);
size_t rmt_read__ (int, char *, size_t);
size_t rmt_write__ (int, char *, size_t);
off_t rmt_lseek__ (int, off_t, int);
-int rmt_ioctl__ (int, int, void *);
+int rmt_ioctl__ (int, unsigned long int, void *);
extern bool force_local_option;
diff --git a/lib/rtapelib.c b/lib/rtapelib.c
index 0c516e5..5190cd4 100644
--- a/lib/rtapelib.c
+++ b/lib/rtapelib.c
@@ -656,7 +656,7 @@ rmt_lseek__ (int handle, off_t offset, int whence)
/* Perform a raw tape operation on remote tape connection HANDLE.
Return the results of the ioctl, or -1 on error. */
int
-rmt_ioctl__ (int handle, int operation, void *argument)
+rmt_ioctl__ (int handle, unsigned long int operation, void *argument)
{
switch (operation)
{
@@ -674,7 +674,6 @@ rmt_ioctl__ (int handle, int operation, void *argument)
/* MTIOCTOP is the easy one. Nothing is transferred in binary. */
- verify (EXPR_SIGNED (mtop->mt_count));
intmax_t count = mtop->mt_count;
sprintf (command_buffer, "I%d\n%jd\n", mtop->mt_op, count);
if (do_command (handle, command_buffer) == -1)