1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-31 14:50:15 +03:00

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
No known key found for this signature in database
GPG Key ID: 417471C0A40F58B3

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;