summaryrefslogtreecommitdiffstats
path: root/sbin/dump
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-01-25 09:15:10 +0000
committerjb <jb@FreeBSD.org>1998-01-25 09:15:10 +0000
commit25ffc13079f21a41cd641a129a34313e23ffc275 (patch)
tree013b85369deaff83058a3c852017b8063254ec11 /sbin/dump
parentfbf068fe6429a5a2a564119551b57ed05e72acae (diff)
downloadFreeBSD-src-25ffc13079f21a41cd641a129a34313e23ffc275.zip
FreeBSD-src-25ffc13079f21a41cd641a129a34313e23ffc275.tar.gz
read() and write() return ssize_t not int, so the first arg to atomic()
should be ssize_t too.
Diffstat (limited to 'sbin/dump')
-rw-r--r--sbin/dump/tape.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/dump/tape.c b/sbin/dump/tape.c
index da00545..dec27ee 100644
--- a/sbin/dump/tape.c
+++ b/sbin/dump/tape.c
@@ -77,7 +77,7 @@ extern int cartridge;
extern char *host;
char *nexttape;
-static int atomic __P((int (*)(), int, char *, int));
+static int atomic __P((ssize_t (*)(), int, char *, int));
static void doslave __P((int, int));
static void enslave __P((void));
static void flushtape __P((void));
@@ -855,7 +855,8 @@ doslave(cmd, slave_number)
*/
static int
atomic(func, fd, buf, count)
- int (*func)(), fd;
+ ssize_t (*func)();
+ int fd;
char *buf;
int count;
{
OpenPOWER on IntegriCloud