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:
parent
65b584334d
commit
1ca89d32ae
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user