signal-util: make struct timespec const

This commit is contained in:
Mike Yuan
2024-04-03 00:49:38 +08:00
parent 65b584334d
commit 1ca89d32ae

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;