[systemd-commits] src/core src/udev

Zbigniew Jędrzejewski-Szmek zbyszek at kemper.freedesktop.org
Tue Feb 18 04:38:20 CET 2014


 src/core/shutdown.c   |    2 +-
 src/udev/udev-rules.c |    2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 06beed6dc6abeb392b3e2ca8c46fa3169616651e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date:   Mon Feb 17 22:25:37 2014 -0500

    Remove unused variable and two function stubs

diff --git a/src/core/shutdown.c b/src/core/shutdown.c
index 9189cfb..c751030 100644
--- a/src/core/shutdown.c
+++ b/src/core/shutdown.c
@@ -222,7 +222,7 @@ static int pivot_to_new_root(void) {
 int main(int argc, char *argv[]) {
         bool need_umount = true, need_swapoff = true, need_loop_detach = true, need_dm_detach = true;
         bool in_container, use_watchdog = false;
-        _cleanup_free_ char *line = NULL, *cgroup = NULL;
+        _cleanup_free_ char *cgroup = NULL;
         char *arguments[3];
         unsigned retries;
         int cmd, r;
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
index 0a32604..47bde61 100644
--- a/src/udev/udev-rules.c
+++ b/src/udev/udev-rules.c
@@ -440,8 +440,6 @@ static void dump_rules(struct udev_rules *rules)
                 dump_token(rules, &rules->tokens[i]);
 }
 #else
-static inline const char *operation_str(enum operation_type type) { return NULL; }
-static inline const char *token_str(enum token_type type) { return NULL; }
 static inline void dump_token(struct udev_rules *rules, struct token *token) {}
 static inline void dump_rules(struct udev_rules *rules) {}
 #endif /* DEBUG */



More information about the systemd-commits mailing list