diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-06 11:12:14 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-06 11:12:14 +0000 |
commit | f6aa001e946d8923594ebd118e6a417ec236d0a1 (patch) | |
tree | 7bb9e4b77ecf446f2eb30ddd2b9c1297ccbc22c3 | |
parent | 1986821bdd13246adc958c7f51df581fd6bc42be (diff) |
SO_SNDTIMEO tv_usec calc error; stevens, vol2, p548
-rw-r--r-- | sys/kern/uipc_socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 86827a81ca0..28865a47cea 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_socket.c,v 1.11 1997/02/28 04:03:45 angelos Exp $ */ +/* $OpenBSD: uipc_socket.c,v 1.12 1997/06/06 11:12:13 deraadt Exp $ */ /* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */ /* @@ -1032,7 +1032,7 @@ sogetopt(so, level, optname, mp) m->m_len = sizeof(struct timeval); mtod(m, struct timeval *)->tv_sec = val / hz; mtod(m, struct timeval *)->tv_usec = - (val % hz) / tick; + (val % hz) * tick; break; } |