signal-util: make struct timespec const

This commit is contained in:
Mike Yuan
2024-04-03 10:03:53 +08:00
parent 65b584334d
commit 1ca89d32ae
+1 -1
View File
@@ -268,7 +268,7 @@ int pop_pending_signal_internal(int sig, ...) {
if (r < 0)
return r;
r = sigtimedwait(&ss, NULL, &(struct timespec) { 0, 0 });
r = sigtimedwait(&ss, NULL, &(const struct timespec) {});
if (r < 0) {
if (errno == EAGAIN)
return 0;