nill 2nd arg to gettimeofday()

This commit is contained in:
Jeff Hill
1996-07-09 23:01:31 +00:00
parent d4f77948a0
commit 2bcf574f79
2 changed files with 5 additions and 5 deletions

View File

@@ -71,6 +71,9 @@
* we eliminate delete ambiguity (chance of the same
* being reused).
* $Log$
* Revision 1.21 1996/06/19 17:12:40 jhill
* check for fd>FD_SETSIZE and improved func proto
*
* Revision 1.20 1995/12/19 19:41:24 jhill
* optimized alarm entry sort
*
@@ -1063,9 +1066,7 @@ fdctx *pfdctx,
struct timeval *pt
)
{
struct timezone tz;
return gettimeofday (pt, &tz);
return gettimeofday (pt, (struct timezone *) NULL);
}
#endif

View File

@@ -17,9 +17,8 @@ osiTime osiTime::getCurrent ()
{
int status;
struct timeval tv;
struct timezone tzp;
status = gettimeofday (&tv, &tzp);
status = gettimeofday (&tv, NULL);
assert (status==0);
return osiTime(tv.tv_sec, tv.tv_usec * nSecPerUSec);