summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-04-02 18:49:38 +0200
committerMike Yuan <me@yhndnzj.com>2024-04-03 04:03:53 +0200
commit1ca89d32aee38036ac916d58f5970accc70fc01c (patch)
treefc86ea457c001a1751c39f4ff80f40807e573633
parenttime-util: drop unneeded 'struct' (diff)
downloadsystemd-1ca89d32aee38036ac916d58f5970accc70fc01c.tar.xz
systemd-1ca89d32aee38036ac916d58f5970accc70fc01c.zip
signal-util: make struct timespec const
-rw-r--r--src/basic/signal-util.c2
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;