chiark / gitweb /
Remove some unused variables
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 20 Mar 2013 22:25:35 +0000 (18:25 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 20 Mar 2013 23:16:01 +0000 (19:16 -0400)
src/journal/journalctl.c
src/python-systemd/id128.c
src/shared/util.c

index 975c44fa9b76572cd32dc74434e5c1a38aeda73f..ddadc21338ffb61a35442446692fb9c2963e3519 100644 (file)
@@ -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);
index 865cc3ce22926e113d5428986272b1f5d511ddde..a9611c4802bcd74ca7be1a5384a55d7235fe0fbc 100644 (file)
@@ -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)
index 69f1b00934321ac8ae4e07fd9a2f50de33fbfd40..872f6f737192c827212f45a1aed2fa3c1c12b167 100644 (file)
@@ -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;