read() and write() return ssize_t not int, so the first arg to atomic()
should be ssize_t too.
This commit is contained in:
parent
b0ed821446
commit
e3f5655fab
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32758
@ -77,7 +77,7 @@ extern int cartridge;
|
|||||||
extern char *host;
|
extern char *host;
|
||||||
char *nexttape;
|
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 doslave __P((int, int));
|
||||||
static void enslave __P((void));
|
static void enslave __P((void));
|
||||||
static void flushtape __P((void));
|
static void flushtape __P((void));
|
||||||
@ -855,7 +855,8 @@ doslave(cmd, slave_number)
|
|||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
atomic(func, fd, buf, count)
|
atomic(func, fd, buf, count)
|
||||||
int (*func)(), fd;
|
ssize_t (*func)();
|
||||||
|
int fd;
|
||||||
char *buf;
|
char *buf;
|
||||||
int count;
|
int count;
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user