summaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-01-15 12:37:16 +0100
committerMichal Schmidt <mschmidt@redhat.com>2012-01-16 13:34:42 +0100
commit595ed347a87e69893c5e72168fc2e94a7cb09e73 (patch)
treec0e9270f001c289c429d4f239b41ac60df75d21b /src/service.c
parent1124fe6f01b1d59d016c238026f20380f38d98dc (diff)
unit: use safe downcasts, remove pointless casts
Always use the macros for downcasting. Remove a few obviously pointless casts.
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service.c b/src/service.c
index a84cee16af..0a5c35ec96 100644
--- a/src/service.c
+++ b/src/service.c
@@ -376,7 +376,7 @@ static int sysv_fix_order(Service *s) {
UnitDependency d;
bool special_s, special_t;
- t = (Service*) other;
+ t = SERVICE(other);
if (s == t)
continue;
@@ -1023,7 +1023,7 @@ static int fsck_fix_order(Service *s) {
Service *t;
UnitDependency d;
- t = (Service*) other;
+ t = SERVICE(other);
if (s == t)
continue;