chiark / gitweb /
api: in constructor function calls, always put the returned object pointer first...
[elogind.git] / src / udev / net / link-config.c
index d05b9099132b637dc212c6f645e5c7a1f570b352..587eeefadaad3d3b812a058daab80ff4e3cbf810 100644 (file)
@@ -97,7 +97,7 @@ static int link_config_ctx_connect(link_config_ctx *ctx) {
         if (r < 0)
                 return r;
 
-        r = sd_rtnl_open(0, &ctx->rtnl);
+        r = sd_rtnl_open(&ctx->rtnl, 0);
         if (r < 0)
                 return r;