chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
api: in constructor function calls, always put the returned object pointer first...
[elogind.git]
/
src
/
libsystemd
/
sd-rtnl
/
rtnl-util.c
diff --git
a/src/libsystemd/sd-rtnl/rtnl-util.c
b/src/libsystemd/sd-rtnl/rtnl-util.c
index ec1a92e01f9f091a65b2034bedf9991ca28f1dac..fc834e95546fe4d4898f61fb41650773fce16f99 100644
(file)
--- a/
src/libsystemd/sd-rtnl/rtnl-util.c
+++ b/
src/libsystemd/sd-rtnl/rtnl-util.c
@@
-34,7
+34,7
@@
int rtnl_set_link_name(sd_rtnl *rtnl, int ifindex, const char *name) {
assert(ifindex > 0);
assert(name);
assert(ifindex > 0);
assert(name);
- r = sd_rtnl_message_new_link(rtnl,
RTM_SETLINK, ifindex, &message
);
+ r = sd_rtnl_message_new_link(rtnl,
&message, RTM_SETLINK, ifindex
);
if (r < 0)
return r;
if (r < 0)
return r;
@@
-61,7
+61,7
@@
int rtnl_set_link_properties(sd_rtnl *rtnl, int ifindex, const char *alias,
if (!alias && !mac && mtu == 0)
return 0;
if (!alias && !mac && mtu == 0)
return 0;
- r = sd_rtnl_message_new_link(rtnl,
RTM_SETLINK, ifindex, &message
);
+ r = sd_rtnl_message_new_link(rtnl,
&message, RTM_SETLINK, ifindex
);
if (r < 0)
return r;
if (r < 0)
return r;