FIONREAD returns int, not off_t
This commit is contained in:
parent
b6ad9ec8d5
commit
c71822f4b8
@ -31,7 +31,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)subr_log.c 7.11 (Berkeley) 3/17/91
|
* from: @(#)subr_log.c 7.11 (Berkeley) 3/17/91
|
||||||
* $Id: subr_log.c,v 1.4 1993/12/18 04:21:25 mycroft Exp $
|
* $Id: subr_log.c,v 1.5 1994/04/12 19:41:48 deraadt Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -210,7 +210,7 @@ logioctl(dev, com, data, flag)
|
|||||||
splx(s);
|
splx(s);
|
||||||
if (l < 0)
|
if (l < 0)
|
||||||
l += MSG_BSIZE;
|
l += MSG_BSIZE;
|
||||||
*(off_t *)data = l;
|
*(int *)data = l;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FIONBIO:
|
case FIONBIO:
|
||||||
|
Loading…
Reference in New Issue
Block a user