mirror of
https://github.com/janet-lang/janet
synced 2025-10-11 13:57:43 +00:00
Fix warning in janet_gettime()
This commit is contained in:
@@ -933,7 +933,7 @@ int janet_gettime(struct timespec *spec, enum JanetTimeSource source) {
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
int janet_gettime(struct timespec *spec, enum JanetTimeSource source) {
|
int janet_gettime(struct timespec *spec, enum JanetTimeSource source) {
|
||||||
clockid_t cid = JANET_TIME_REALTIME;
|
clockid_t cid = CLOCK_REALTIME;
|
||||||
if (source == JANET_TIME_REALTIME) {
|
if (source == JANET_TIME_REALTIME) {
|
||||||
cid = CLOCK_REALTIME;
|
cid = CLOCK_REALTIME;
|
||||||
} else if (source == JANET_TIME_MONOTONIC) {
|
} else if (source == JANET_TIME_MONOTONIC) {
|
||||||
|
Reference in New Issue
Block a user