]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - time/gettimeofday.c
Make second argument of gettimeofday as 'void *'
[thirdparty/glibc.git] / time / gettimeofday.c
index e8055b397dac3a39984347179fd51cd4ae31c0b4..ddaf46f481d47bebad06099c0f088ca3d20feb73 100644 (file)
    If *TZ is not NULL, clear it.
    Returns 0 on success, -1 on errors.  */
 int
-___gettimeofday (struct timeval *tv, struct timezone *tz)
+___gettimeofday (struct timeval *restrict tv, void *restrict tz)
 {
   if (__glibc_unlikely (tz != 0))
-    memset (tz, 0, sizeof *tz);
+    memset (tz, 0, sizeof (struct timezone));
 
   struct timespec ts;
   if (__clock_gettime (CLOCK_REALTIME, &ts))