summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas H. P. Andersen <phomes@gmail.com>2016-04-23 02:49:07 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-22 20:49:07 -0400
commit0f5e13822d5b89fd36103093daf69af952bf0703 (patch)
tree7181e97eaac5458dbd6bcf2f89767b27b0508031 /src
parent86ec5e5e29295fb2594a7899e86cda9644b98b9a (diff)
tree-wide: remove unused variables (#3098)
Diffstat (limited to 'src')
-rw-r--r--src/core/dbus-unit.c1
-rw-r--r--src/nspawn/nspawn.c2
-rw-r--r--src/test/test-tmpfiles.c2
3 files changed, 2 insertions, 3 deletions
diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c
index 5c9d32438c..abe30413c3 100644
--- a/src/core/dbus-unit.c
+++ b/src/core/dbus-unit.c
@@ -936,7 +936,6 @@ static int append_cgroup(sd_bus_message *reply, const char *p, Set *pids) {
int bus_unit_method_get_processes(sd_bus_message *message, void *userdata, sd_bus_error *error) {
_cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL;
_cleanup_(set_freep) Set *pids = NULL;
- _cleanup_free_ char *p = NULL;
Unit *u = userdata;
pid_t pid;
int r;
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 44dce471e7..e1d37d383a 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -1376,7 +1376,7 @@ static int setup_hostname(void) {
static int setup_journal(const char *directory) {
sd_id128_t this_id;
- _cleanup_free_ char *b = NULL, *d = NULL;
+ _cleanup_free_ char *d = NULL;
const char *p, *q;
bool try;
char id[33];
diff --git a/src/test/test-tmpfiles.c b/src/test/test-tmpfiles.c
index 8fda0904f3..b34ebeefb2 100644
--- a/src/test/test-tmpfiles.c
+++ b/src/test/test-tmpfiles.c
@@ -33,7 +33,7 @@
int main(int argc, char** argv) {
_cleanup_free_ char *cmd = NULL, *cmd2 = NULL, *ans = NULL, *ans2 = NULL, *d = NULL, *tmp = NULL, *line = NULL;
- _cleanup_close_ int fd = -1, fd2 = -1, fd3 = -1;
+ _cleanup_close_ int fd = -1, fd2 = -1;
const char *p = argv[1] ?: "/tmp";
char *pattern;