diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2012-01-15 12:37:16 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2012-01-16 13:34:42 +0100 |
commit | 595ed347a87e69893c5e72168fc2e94a7cb09e73 (patch) | |
tree | c0e9270f001c289c429d4f239b41ac60df75d21b /src/socket.c | |
parent | 1124fe6f01b1d59d016c238026f20380f38d98dc (diff) |
unit: use safe downcasts, remove pointless casts
Always use the macros for downcasting.
Remove a few obviously pointless casts.
Diffstat (limited to 'src/socket.c')
-rw-r--r-- | src/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.c b/src/socket.c index e0ddcef1b3..b2bb080263 100644 --- a/src/socket.c +++ b/src/socket.c @@ -274,7 +274,7 @@ static int socket_add_mount_links(Socket *s) { assert(s); LIST_FOREACH(units_by_type, other, UNIT(s)->manager->units_by_type[UNIT_MOUNT]) - if ((r = socket_add_one_mount_link(s, (Mount*) other)) < 0) + if ((r = socket_add_one_mount_link(s, MOUNT(other))) < 0) return r; return 0; |