diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-04-02 18:49:38 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-04-03 04:03:53 +0200 |
commit | 1ca89d32aee38036ac916d58f5970accc70fc01c (patch) | |
tree | fc86ea457c001a1751c39f4ff80f40807e573633 | |
parent | time-util: drop unneeded 'struct' (diff) | |
download | systemd-1ca89d32aee38036ac916d58f5970accc70fc01c.tar.xz systemd-1ca89d32aee38036ac916d58f5970accc70fc01c.zip |
signal-util: make struct timespec const
-rw-r--r-- | src/basic/signal-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/signal-util.c b/src/basic/signal-util.c index 661ad00b11..27d094b7bd 100644 --- a/src/basic/signal-util.c +++ b/src/basic/signal-util.c @@ -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; |