summaryrefslogtreecommitdiffstats
path: root/src/libsystemd
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-02-18 21:19:51 +0100
committerGitHub <noreply@github.com>2021-02-18 21:19:51 +0100
commit988338eb19ee2049611da3a8bbce9ff4525e5c61 (patch)
treeace21f6419fbe990dc9597cac7c070d244a235d6 /src/libsystemd
parentrandom-util: fix type of random_u64_range() (diff)
parentnetwork: tighten table alignment a bit (diff)
downloadsystemd-988338eb19ee2049611da3a8bbce9ff4525e5c61.tar.xz
systemd-988338eb19ee2049611da3a8bbce9ff4525e5c61.zip
Merge pull request #18685 from poettering/network-type-tweaks
sd-network.h type tweaks
Diffstat (limited to 'src/libsystemd')
-rw-r--r--src/libsystemd/sd-netlink/generic-netlink.c12
-rw-r--r--src/libsystemd/sd-netlink/generic-netlink.h2
-rw-r--r--src/libsystemd/sd-netlink/netlink-types.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/src/libsystemd/sd-netlink/generic-netlink.c b/src/libsystemd/sd-netlink/generic-netlink.c
index 38e80d8f46..d4ec268806 100644
--- a/src/libsystemd/sd-netlink/generic-netlink.c
+++ b/src/libsystemd/sd-netlink/generic-netlink.c
@@ -25,9 +25,9 @@ static const genl_family genl_families[] = {
int sd_genl_socket_open(sd_netlink **ret) {
return netlink_open_family(ret, NETLINK_GENERIC);
}
-static int lookup_id(sd_netlink *nl, sd_genl_family family, uint16_t *id);
+static int lookup_id(sd_netlink *nl, sd_genl_family_t family, uint16_t *id);
-static int genl_message_new(sd_netlink *nl, sd_genl_family family, uint16_t nlmsg_type, uint8_t cmd, sd_netlink_message **ret) {
+static int genl_message_new(sd_netlink *nl, sd_genl_family_t family, uint16_t nlmsg_type, uint8_t cmd, sd_netlink_message **ret) {
_cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL;
const NLType *genl_cmd_type, *nl_type;
const NLTypeSystem *type_system;
@@ -71,7 +71,7 @@ static int genl_message_new(sd_netlink *nl, sd_genl_family family, uint16_t nlms
return 0;
}
-int sd_genl_message_new(sd_netlink *nl, sd_genl_family family, uint8_t cmd, sd_netlink_message **ret) {
+int sd_genl_message_new(sd_netlink *nl, sd_genl_family_t family, uint8_t cmd, sd_netlink_message **ret) {
uint16_t id;
int r;
@@ -82,7 +82,7 @@ int sd_genl_message_new(sd_netlink *nl, sd_genl_family family, uint8_t cmd, sd_n
return genl_message_new(nl, family, id, cmd, ret);
}
-static int lookup_id(sd_netlink *nl, sd_genl_family family, uint16_t *id) {
+static int lookup_id(sd_netlink *nl, sd_genl_family_t family, uint16_t *id) {
_cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL, *reply = NULL;
uint16_t u;
void *v;
@@ -127,7 +127,7 @@ static int lookup_id(sd_netlink *nl, sd_genl_family family, uint16_t *id) {
return 0;
}
-int nlmsg_type_to_genl_family(const sd_netlink *nl, uint16_t type, sd_genl_family *ret) {
+int nlmsg_type_to_genl_family(const sd_netlink *nl, uint16_t type, sd_genl_family_t *ret) {
void *p;
assert_return(nl, -EINVAL);
@@ -151,7 +151,7 @@ int nlmsg_type_to_genl_family(const sd_netlink *nl, uint16_t type, sd_genl_famil
return 0;
}
-int sd_genl_message_get_family(const sd_netlink *nl, const sd_netlink_message *m, sd_genl_family *family) {
+int sd_genl_message_get_family(const sd_netlink *nl, const sd_netlink_message *m, sd_genl_family_t *family) {
uint16_t type;
int r;
diff --git a/src/libsystemd/sd-netlink/generic-netlink.h b/src/libsystemd/sd-netlink/generic-netlink.h
index 72001e88d2..fd0461426b 100644
--- a/src/libsystemd/sd-netlink/generic-netlink.h
+++ b/src/libsystemd/sd-netlink/generic-netlink.h
@@ -3,4 +3,4 @@
#include "sd-netlink.h"
-int nlmsg_type_to_genl_family(const sd_netlink *nl, uint16_t type, sd_genl_family *ret);
+int nlmsg_type_to_genl_family(const sd_netlink *nl, uint16_t type, sd_genl_family_t *ret);
diff --git a/src/libsystemd/sd-netlink/netlink-types.c b/src/libsystemd/sd-netlink/netlink-types.c
index 78a3e8f973..4acf6a7ff8 100644
--- a/src/libsystemd/sd-netlink/netlink-types.c
+++ b/src/libsystemd/sd-netlink/netlink-types.c
@@ -1636,7 +1636,7 @@ const NLTypeSystem *type_system_get_root(int protocol) {
}
int type_system_root_get_type(sd_netlink *nl, const NLType **ret, uint16_t type) {
- sd_genl_family family;
+ sd_genl_family_t family;
const NLType *nl_type;
int r;