Skip to content

Commit 769e78f

Browse files
morn-0saghul
authored andcommitted
Remove unnecessary parameters
Enhanced msvc cross-compile compatibility
1 parent ef15418 commit 769e78f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cutils.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ void rqsort(void *base, size_t nmemb, size_t size, cmp_f cmp, void *opaque)
11311131

11321132
#ifdef _WIN32
11331133
// From: https://stackoverflow.com/a/26085827
1134-
static int gettimeofday_msvc(struct timeval *tp, struct timezone *tzp)
1134+
static int gettimeofday_msvc(struct timeval *tp)
11351135
{
11361136
static const uint64_t EPOCH = ((uint64_t)116444736000000000ULL);
11371137

@@ -1185,7 +1185,7 @@ uint64_t js__hrtime_ns(void) {
11851185
int64_t js__gettimeofday_us(void) {
11861186
struct timeval tv;
11871187
#ifdef _WIN32
1188-
gettimeofday_msvc(&tv, NULL);
1188+
gettimeofday_msvc(&tv);
11891189
#else
11901190
gettimeofday(&tv, NULL);
11911191
#endif

0 commit comments

Comments
 (0)