diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-06-19 16:55:49 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-06-19 16:55:49 +0200 |
commit | 4cd1fbcc0648a289e9bf9d9047621bbdf7ec0ece (patch) | |
tree | b4442600eb49703950251cd30274eedea48c4ecc /src/swap.c | |
parent | bb00e604097fba830af1dc078d78aff278dfcd37 (diff) |
unit: get rid of various unnecessary casts
Diffstat (limited to 'src/swap.c')
-rw-r--r-- | src/swap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/swap.c b/src/swap.c index 501a1d96c8..663c568961 100644 --- a/src/swap.c +++ b/src/swap.c @@ -127,7 +127,7 @@ static int swap_verify(Swap *s) { bool b; char *e; - if (UNIT(s)->meta.load_state != UNIT_LOADED) + if (s->meta.load_state != UNIT_LOADED) return 0; if (!(e = unit_name_from_path(s->what, ".swap"))) @@ -137,7 +137,7 @@ static int swap_verify(Swap *s) { free(e); if (!b) { - log_error("%s: Value of \"What\" and unit name do not match, not loading.\n", UNIT(s)->meta.id); + log_error("%s: Value of \"What\" and unit name do not match, not loading.\n", s->meta.id); return -EINVAL; } @@ -320,7 +320,7 @@ static void swap_set_state(Swap *s, SwapState state) { if (state != old_state) log_debug("%s changed %s -> %s", - UNIT(s)->meta.id, + s->meta.id, swap_state_to_string(old_state), swap_state_to_string(state)); |