fix gcc complaint about assignment in truth value
This commit is contained in:
parent
0372e36e3f
commit
77b1ebc172
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: ibcs2_ioctl.c,v 1.16 1999/01/13 23:41:29 sommerfe Exp $ */
|
/* $NetBSD: ibcs2_ioctl.c,v 1.17 1999/01/14 15:00:38 jtk Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994, 1995 Scott Bartram
|
* Copyright (c) 1994, 1995 Scott Bartram
|
||||||
|
@ -458,7 +458,7 @@ ibcs2_sys_ioctl(p, v, retval)
|
||||||
t = (int) SCARG(uap, data);
|
t = (int) SCARG(uap, data);
|
||||||
t = (t ? t : 1) * hz * 4;
|
t = (t ? t : 1) * hz * 4;
|
||||||
t /= 10;
|
t /= 10;
|
||||||
if (error = (*ctl)(fp, TIOCSBRK, (caddr_t)0, p))
|
if ((error = (*ctl)(fp, TIOCSBRK, (caddr_t)0, p)))
|
||||||
return error;
|
return error;
|
||||||
error = tsleep((caddr_t)&t, PZERO | PCATCH, "ibcs2_tcsbrk", t);
|
error = tsleep((caddr_t)&t, PZERO | PCATCH, "ibcs2_tcsbrk", t);
|
||||||
if (error == EINTR || error == ERESTART) {
|
if (error == EINTR || error == ERESTART) {
|
||||||
|
|
Loading…
Reference in New Issue