diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 2004-06-25 00:54:29 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 2004-06-25 00:54:29 +0000 |
commit | 79981a6702f0f02cb3422972b06742e038d3a438 (patch) | |
tree | 3424b9eb989ccabc9b4deb707cafe6373e61e91a /sys/netiso | |
parent | 98c07b8df760e77f7b973e9c9e873775de403892 (diff) |
Minor fixes suggested by nordin@ and henning@
ok millert@
Diffstat (limited to 'sys/netiso')
-rw-r--r-- | sys/netiso/tp_param.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/netiso/tp_param.h b/sys/netiso/tp_param.h index 7cdfbbb357c..e7c23c48b13 100644 --- a/sys/netiso/tp_param.h +++ b/sys/netiso/tp_param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tp_param.h,v 1.5 2004/06/24 19:35:26 tholo Exp $ */ +/* $OpenBSD: tp_param.h,v 1.6 2004/06/25 00:54:27 tholo Exp $ */ /* $NetBSD: tp_param.h,v 1.9 1996/02/13 22:11:32 christos Exp $ */ /*- @@ -261,12 +261,7 @@ typedef unsigned short RefNum; #define GET_TIME_SINCE(oldtvalp, diffp) {\ struct timeval _tv;\ getmicrotime(&_tv);\ - (diffp)->tv_sec = _tv.tv_sec - (oldtvalp)->tv_sec;\ - (diffp)->tv_usec = _tv.tv_usec - (oldtvalp)->tv_usec;\ - if( (diffp)->tv_usec <0 ) {\ - (diffp)->tv_sec --;\ - (diffp)->tv_usec = 1000000 - (diffp)->tv_usec;\ - }\ + timersub(&_tv, (oldtvalp), (diffp));\ } /****************************************************** |