diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-02-18 17:53:56 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-02-18 18:17:16 +0100 |
commit | 2324fd3a3931851618f2e523b14e7ee4efe0f72c (patch) | |
tree | ed8a9f586d6098795e1197a56d84d3943ca435d3 /src/network/test-network-tables.c | |
parent | 95aa3937da91ba6bb30fab33740cc5a53484780c (diff) | |
download | systemd-2324fd3a3931851618f2e523b14e7ee4efe0f72c.tar.gz |
network: suffix types with _t in public headers
Apparently, in our current public headers (i.e. those called sd-*.h) we
suffixed typedefs that we use as values with _t, but we didn't do this
for enum typedefs. Fix that while this stuff is not actually public yet.
With this scheme "value typedefs" now end systematically in _t, and
"object typedefs" (i.e. structures that are typically passed around via
pointers and not values) do not.
No code changes, just some renaming.
Diffstat (limited to 'src/network/test-network-tables.c')
-rw-r--r-- | src/network/test-network-tables.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/test-network-tables.c b/src/network/test-network-tables.c index b1d934a3c4..ce34449554 100644 --- a/src/network/test-network-tables.c +++ b/src/network/test-network-tables.c @@ -46,10 +46,10 @@ int main(int argc, char **argv) { test_table_sparse(macvlan_mode, NETDEV_MACVLAN_MODE); test_table_sparse(address_family, ADDRESS_FAMILY); - assert_cc(sizeof(sd_lldp_event) == sizeof(int64_t)); - assert_cc(sizeof(sd_ndisc_event) == sizeof(int64_t)); - assert_cc(sizeof(sd_dhcp_lease_server_type) == sizeof(int64_t)); - assert_cc(sizeof(sd_genl_family) == sizeof(int64_t)); + assert_cc(sizeof(sd_lldp_event_t) == sizeof(int64_t)); + assert_cc(sizeof(sd_ndisc_event_t) == sizeof(int64_t)); + assert_cc(sizeof(sd_dhcp_lease_server_type_t) == sizeof(int64_t)); + assert_cc(sizeof(sd_genl_family_t) == sizeof(int64_t)); return EXIT_SUCCESS; } |