[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in libusers



Yesterday I found a small bug in Stephen Usher's libusers.
Here are the diffs (ok, a really small bug):

*** getloadavg.c.orig   Mon Aug 15 08:29:51 1994
--- getloadavg.c        Mon Aug 15 08:30:53 1994
***************
*** 36,42 ****
		return -1;
	}

!       if ((i = Suptime(uptime, avenrun)) < 0)
	{
  #ifndef ENOSYS                /* function not implemented (POSIX) */
		errno = -i;
--- 36,42 ----
		return -1;
	}

!       if ((i = Suptime(&uptime, avenrun)) < 0)
	{
  #ifndef ENOSYS                /* function not implemented (POSIX) */
		errno = -i;