From 4c4ccfbf29c4ef076cc3d13eec55a3604c738eca Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 25 Jun 2007 16:59:55 +0000 Subject: mt_count is just an int --- usr.bin/tcopy/tcopy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/tcopy/tcopy.c') diff --git a/usr.bin/tcopy/tcopy.c b/usr.bin/tcopy/tcopy.c index 4771768d28e..eb67f51cfd7 100644 --- a/usr.bin/tcopy/tcopy.c +++ b/usr.bin/tcopy/tcopy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcopy.c,v 1.9 2003/06/10 22:20:53 deraadt Exp $ */ +/* $OpenBSD: tcopy.c,v 1.10 2007/06/25 16:59:54 deraadt Exp $ */ /* $NetBSD: tcopy.c,v 1.5 1997/04/15 07:23:08 lukem Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)tcopy.c 8.3 (Berkeley) 1/23/95"; #endif -static char rcsid[] = "$OpenBSD: tcopy.c,v 1.9 2003/06/10 22:20:53 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: tcopy.c,v 1.10 2007/06/25 16:59:54 deraadt Exp $"; #endif /* not lint */ #include @@ -312,7 +312,7 @@ writeop(int fd, int type) struct mtop op; op.mt_op = type; - op.mt_count = (daddr_t)1; + op.mt_count = 1; if (ioctl(fd, MTIOCTOP, (char *)&op) < 0) err(6, "tape op"); } -- cgit v1.2.3