sys/time.h warning
Andreas Schwab
schwab@suse.de
Wed Feb 14 07:28:00 GMT 2001
When compiling with _SVID_SOURCE we get a warning in <sys/time.h> about
struct timezone declared inside parameter list. Either we should make the
definition of struct timezone __USE_MISC or use __timezone_ptr_t in the
declaration of settimeofday. The patch implements the latter.
Andreas.
2001-02-14 Andreas Schwab <schwab@suse.de>
* time/sys/time.h: Use __timezone_ptr_t in declaration of
settimeofday.
--- time/sys/time.h.~1.29.~ Mon Jan 29 10:45:46 2001
+++ time/sys/time.h Wed Feb 14 16:18:33 2001
@@ -76,7 +76,7 @@
/* Set the current time of day and timezone information.
This call is restricted to the super-user. */
extern int settimeofday (__const struct timeval *__tv,
- __const struct timezone *__tz) __THROW;
+ __const __timezone_ptr_t *__tz) __THROW;
/* Adjust the current time of day by the amount in DELTA.
If OLDDELTA is not NULL, it is filled in with the amount
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
More information about the Libc-hacker
mailing list