aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-skel-0.c')
-rw-r--r--tests/test-skel-0.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-skel-0.c b/tests/test-skel-0.c
index 96e42ae..91128d3 100644
--- a/tests/test-skel-0.c
+++ b/tests/test-skel-0.c
@@ -128,7 +128,7 @@ int at_get_fd(const char *str_dirfd)
}
str_mode = strtok(NULL, ":");
- return open(str_path, f_get_flags(str_flags), sscanf_mode_t(str_mode));
+ return open64(str_path, f_get_flags(str_flags), sscanf_mode_t(str_mode));
}
#define V_TIMESPEC "NULL | NOW | #[,#]"
@@ -144,8 +144,8 @@ struct timespec *parse_timespec(const char *s)
if (!strcmp(s, "NOW")) {
times->tv_sec = time(0);
} else {
- long sec = 0, nsec = 0;
- sscanf(s, "%li,%li", &sec, &nsec);
+ int64_t sec = 0, nsec = 0;
+ sscanf(s, "%" PRIi64 ",%" PRIi64, &sec, &nsec);
times->tv_sec = sec;
times->tv_nsec = nsec;
}