Reduce pointer indirection for global list_t variables
authorFufu Fang <fangfufu2003@gmail.com>
Tue, 10 Aug 2021 00:53:00 +0000 (01:53 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Tue, 10 Aug 2021 19:04:31 +0000 (21:04 +0200)
commit0871c3095151bce6a4031a2662aa51b7193b855c
treec2c3c408e81f0621832d513c2edd618aa3397db0
parent9e917cc3b614d7a986416e6a2c3ea9ea583adacf
Reduce pointer indirection for global list_t variables

Converted cmdline_conf, connection_list, outgoing_list from
pointer-to-structs to structs.

Created list_empty_list for these structs. This is necessary,
because list_delete_list frees the supplied list_t pointer.

Part of https://github.com/gsliepen/tinc/issues/294
19 files changed:
src/autoconnect.c
src/conf.c
src/conf.h
src/connection.c
src/connection.h
src/control.c
src/graph.c
src/list.c
src/list.h
src/logger.c
src/meta.c
src/net.c
src/net.h
src/net_packet.c
src/net_setup.c
src/net_socket.c
src/protocol_key.c
src/route.c
src/tincd.c