summaryrefslogtreecommitdiff
path: root/src/manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-01-22 02:18:59 +0100
committerLennart Poettering <lennart@poettering.net>2011-01-22 02:19:16 +0100
commitbd40a2d830265cdd36eb19576bdbe8e41dd527ee (patch)
tree65be055210412b9b3b961a153e7dc131ee7c653e /src/manager.c
parent0b1724894fb85aa1c07b2619e9269cfafd736956 (diff)
clang: fix some issues found with clang-analyzersystemd/v17
Diffstat (limited to 'src/manager.c')
-rw-r--r--src/manager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/manager.c b/src/manager.c
index 013b26b6c9..2714df1152 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -2428,7 +2428,6 @@ void manager_send_unit_plymouth(Manager *m, Unit *u) {
union sockaddr_union sa;
int n = 0;
char *message = NULL;
- ssize_t r;
/* Don't generate plymouth events if the service was already
* started and we're just deserializing */
@@ -2472,7 +2471,7 @@ void manager_send_unit_plymouth(Manager *m, Unit *u) {
}
errno = 0;
- if ((r = write(fd, message, n + 1)) != n + 1) {
+ if (write(fd, message, n + 1) != n + 1) {
if (errno != EPIPE &&
errno != EAGAIN &&