From 4750fade135aed733aa7a5fda7c670e6b4391538 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 20 Mar 2013 18:25:35 -0400 Subject: [PATCH] Remove some unused variables --- src/journal/journalctl.c | 2 +- src/python-systemd/id128.c | 2 +- src/shared/util.c | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 975c44fa9..ddadc2133 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -596,7 +596,7 @@ static int add_this_boot(sd_journal *j) { } static int add_unit(sd_journal *j) { - _cleanup_free_ char *m = NULL, *u = NULL; + _cleanup_free_ char *u = NULL; int r; assert(j); diff --git a/src/python-systemd/id128.c b/src/python-systemd/id128.c index 865cc3ce2..a9611c480 100644 --- a/src/python-systemd/id128.c +++ b/src/python-systemd/id128.c @@ -54,7 +54,7 @@ PyDoc_STRVAR(get_boot__doc__, static PyObject* make_uuid(sd_id128_t id) { PyObject _cleanup_Py_DECREF_ *uuid = NULL, *UUID = NULL, *bytes = NULL, - *args = NULL, *kwargs = NULL, *obj = NULL; + *args = NULL, *kwargs = NULL; uuid = PyImport_ImportModule("uuid"); if (!uuid) diff --git a/src/shared/util.c b/src/shared/util.c index 69f1b0093..872f6f737 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -5553,7 +5553,6 @@ int on_ac_power(void) { for (;;) { struct dirent *de; union dirent_storage buf; - _cleanup_free_ char *p = NULL; _cleanup_close_ int fd = -1, device = -1; char contents[6]; ssize_t n; -- 2.30.2