summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/tst01.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-07-09 12:17:46 +0000
committerjkh <jkh@FreeBSD.org>1996-07-09 12:17:46 +0000
commita97e1fa1c1dc7804b2698668fce58aba32b2277b (patch)
tree393aabbf550c0edc2adcb9103649364e636e9a1c /lib/libdisk/tst01.c
parent6082dbb660fe2b5824f3fbf4d57193ae2bee37f1 (diff)
downloadFreeBSD-src-a97e1fa1c1dc7804b2698668fce58aba32b2277b.zip
FreeBSD-src-a97e1fa1c1dc7804b2698668fce58aba32b2277b.tar.gz
Cast lseek arguments appropriately.
Submitted-By: "Frank ten Wolde" <franky@pinewood.nl>
Diffstat (limited to 'lib/libdisk/tst01.c')
-rw-r--r--lib/libdisk/tst01.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libdisk/tst01.c b/lib/libdisk/tst01.c
index 78da1010..b9911c4 100644
--- a/lib/libdisk/tst01.c
+++ b/lib/libdisk/tst01.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: tst01.c,v 1.16 1995/12/07 10:33:25 peter Exp $
+ * $Id: tst01.c,v 1.17 1996/03/24 18:55:39 joerg Exp $
*
*/
@@ -77,8 +77,8 @@ scan_block(int fd, daddr_t block)
{
u_char foo[512];
- if (-1 == lseek(fd,block * 512,SEEK_SET))
- err(1,"lseek");
+ if (-1 == lseek(fd, (off_t)block * 512, SEEK_SET))
+ err(1, "lseek");
if (512 != read(fd,foo, 512))
return 1;
return 0;
OpenPOWER on IntegriCloud