chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rtnl: fix for 32bits
[elogind.git]
/
src
/
libsystemd-rtnl
/
rtnl-util.c
diff --git
a/src/libsystemd-rtnl/rtnl-util.c
b/src/libsystemd-rtnl/rtnl-util.c
index 264b72ec3765ff69bd3bb0edf52a5e7bc5b9c888..dfc0050def3d70b44b552010c1efb97009cf9a22 100644
(file)
--- a/
src/libsystemd-rtnl/rtnl-util.c
+++ b/
src/libsystemd-rtnl/rtnl-util.c
@@
-38,7
+38,7
@@
int rtnl_set_link_name(sd_rtnl *rtnl, int ifindex, const char *name) {
if (r < 0)
return r;
if (r < 0)
return r;
- r = sd_rtnl_message_append(message, IFLA_IFNAME, name);
+ r = sd_rtnl_message_append
_string
(message, IFLA_IFNAME, name);
if (r < 0)
return r;
if (r < 0)
return r;
@@
-66,7
+66,7
@@
int rtnl_set_link_properties(sd_rtnl *rtnl, int ifindex, const char *alias,
return r;
if (alias) {
return r;
if (alias) {
- r = sd_rtnl_message_append(message, IFLA_IFALIAS, alias);
+ r = sd_rtnl_message_append
_string
(message, IFLA_IFALIAS, alias);
if (r < 0)
return r;
if (r < 0)
return r;
@@
-75,7
+75,7
@@
int rtnl_set_link_properties(sd_rtnl *rtnl, int ifindex, const char *alias,
}
if (mac) {
}
if (mac) {
- r = sd_rtnl_message_append(message, IFLA_ADDRESS, mac);
+ r = sd_rtnl_message_append
_ether_addr
(message, IFLA_ADDRESS, mac);
if (r < 0)
return r;
if (r < 0)
return r;
@@
-83,7
+83,7
@@
int rtnl_set_link_properties(sd_rtnl *rtnl, int ifindex, const char *alias,
}
if (mtu > 0) {
}
if (mtu > 0) {
- r = sd_rtnl_message_append
(message, IFLA_MTU, &
mtu);
+ r = sd_rtnl_message_append
_u32(message, IFLA_MTU,
mtu);
if (r < 0)
return r;
if (r < 0)
return r;