mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
signal-util: make struct timespec const
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user