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/load-fragment.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/load-fragment.c')
-rw-r--r-- | src/load-fragment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/load-fragment.c b/src/load-fragment.c index 0961d945aa..deae2dc0ab 100644 --- a/src/load-fragment.c +++ b/src/load-fragment.c @@ -269,7 +269,7 @@ int config_parse_socket_listen( assert(rvalue); assert(data); - s = (Socket*) data; + s = SOCKET(data); if (!(p = new0(SocketPort, 1))) return -ENOMEM; @@ -380,7 +380,7 @@ int config_parse_socket_bind( assert(rvalue); assert(data); - s = (Socket*) data; + s = SOCKET(data); if ((b = socket_address_bind_ipv6_only_from_string(rvalue)) < 0) { int r; |