Skip to content

Commit d79bf0f

Browse files
authored
Merge pull request #543 from bmwiedemann/werrorfix
Use correct result type for clock_gettime
2 parents 1051677 + e1d5fc5 commit d79bf0f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/libfaketime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2498,7 +2498,7 @@ time_t time(time_t *time_tptr)
24982498
#endif
24992499
{
25002500
struct timespec tp;
2501-
time_t result;
2501+
int result;
25022502

25032503
ftpl_init();
25042504
#ifdef MACOS_DYLD_INTERPOSE
@@ -3960,7 +3960,7 @@ int __clock_gettime(clockid_t clk_id, struct timespec *tp)
39603960
time_t __time(time_t *time_tptr)
39613961
{
39623962
struct timespec tp;
3963-
time_t result;
3963+
int result;
39643964

39653965
DONT_FAKE_TIME(result = (*real_clock_gettime)(CLOCK_REALTIME, &tp));
39663966
if (result == -1) return -1;

0 commit comments

Comments
 (0)