summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-20 18:25:35 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-03-20 19:16:01 -0400
commit4750fade135aed733aa7a5fda7c670e6b4391538 (patch)
tree4aa2d9c6f14ee1fba599f6403b4f15b47268eadf
parentfd4a5ec6fa834eb299b8e0ba6ab3e348d00d61b6 (diff)
Remove some unused variables
-rw-r--r--src/journal/journalctl.c2
-rw-r--r--src/python-systemd/id128.c2
-rw-r--r--src/shared/util.c1
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;