From e3d636b34aa32f25879179345b617420e9fde99c Mon Sep 17 00:00:00 2001 From: Chris Torek Date: Mon, 26 Apr 1993 10:49:35 -0800 Subject: [PATCH] was busted; prototype bread() to fix it SCCS-vsn: sbin/icheck/icheck.c 5.12 --- usr/src/sbin/icheck/icheck.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/src/sbin/icheck/icheck.c b/usr/src/sbin/icheck/icheck.c index c055810e09..42925c0fd8 100644 --- a/usr/src/sbin/icheck/icheck.c +++ b/usr/src/sbin/icheck/icheck.c @@ -75,6 +75,7 @@ daddr_t ndup; int nerror; long dev_bsize = 1; +int bread __P((daddr_t, char *, ssize_t)); long atol(); #ifndef STANDALONE char *malloc(); @@ -447,7 +448,7 @@ getsb(fs, file) { int i, j, size; - if (bread(SBOFF, fs, SBSIZE)) { + if (bread(SBOFF, (char *)fs, SBSIZE)) { printf("bad super block"); perror(file); nerror |= 04; @@ -471,6 +472,7 @@ getsb(fs, file) bread(bno, buf, cnt) daddr_t bno; char *buf; + ssize_t cnt; { register i; -- 2.20.1