Loading...
sys/settimeofday.c Libc-1725.40.4 Libc-1583.60.2
--- Libc/Libc-1725.40.4/sys/settimeofday.c
+++ Libc/Libc-1583.60.2/sys/settimeofday.c
@@ -28,7 +28,6 @@
 #else
 #define notify_post(...)
 #endif
-#include <errno.h>
 #include <sys/time.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -47,12 +46,7 @@
 settimeofday(const struct timeval *tp, const struct timezone *tzp)
 {
 	int ret = __settimeofday(tp, tzp);
-	int serror = 0;
-	if (ret == 0) {
-		notify_post(kNotifyClockSet);
-	} else {
-		serror = errno;
-	}
+	if (ret == 0) notify_post(kNotifyClockSet);
 
 	if (tp) {
 		char *msg = NULL;
@@ -61,6 +55,5 @@
 		free(msg);
 	}
 
-	errno = serror;
 	return ret;
 }