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: use _cleanup_ macro more
[elogind.git]
/
src
/
libsystemd-rtnl
/
test-rtnl.c
diff --git
a/src/libsystemd-rtnl/test-rtnl.c
b/src/libsystemd-rtnl/test-rtnl.c
index 4079e9ec97c9d74aeed3bfa6b4cd8c65f18d8471..1cdd6e115d4daef164ec5d717400663949261c3f 100644
(file)
--- a/
src/libsystemd-rtnl/test-rtnl.c
+++ b/
src/libsystemd-rtnl/test-rtnl.c
@@
-28,7
+28,7
@@
static void test_link_configure(sd_rtnl *rtnl, int ifindex) {
_cleanup_sd_rtnl_message_unref_ sd_rtnl_message *message;
static void test_link_configure(sd_rtnl *rtnl, int ifindex) {
_cleanup_sd_rtnl_message_unref_ sd_rtnl_message *message;
-
__u16
type;
+
uint16_t
type;
const char *mac = "98:fe:94:3f:c6:18", *name = "test";
unsigned int mtu = 1450;
void *data;
const char *mac = "98:fe:94:3f:c6:18", *name = "test";
unsigned int mtu = 1450;
void *data;
@@
-60,7
+60,7
@@
int main(void) {
sd_rtnl_message *r;
void *data;
int if_loopback;
sd_rtnl_message *r;
void *data;
int if_loopback;
-
__u16
type;
+
uint16_t
type;
unsigned int mtu = 0;
unsigned int *mtu_reply;
unsigned int mtu = 0;
unsigned int *mtu_reply;