d_read_t functions return an int, not a ssize_t. (Considering the fact
that read(2) returns a ssize_t perhaps this is a bug in d_read_t?)
This commit is contained in:
parent
feb5060448
commit
dc0f20a3d2
@ -301,7 +301,7 @@ pcfclock_read_dev(dev_t dev, char *buf, int maxretries)
|
|||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t
|
static int
|
||||||
pcfclock_read(dev_t dev, struct uio *uio, int ioflag)
|
pcfclock_read(dev_t dev, struct uio *uio, int ioflag)
|
||||||
{
|
{
|
||||||
u_int unit = minor(dev);
|
u_int unit = minor(dev);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user