chiark / gitweb /
unit: use safe downcasts, remove pointless casts
[elogind.git] / src / service.c
index a84cee16af9e7e06811ce8d89d52fabeea3cc5ea..0a5c35ec96b7bcff45f0ecdf796ebb818f30b95f 100644 (file)
@@ -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;