NetworkManager/shared/n-dhcp4/src
Thomas Haller 4686e9baef
n-dhcp4: work around compiler warning in n_dhcp4_socket_packet_send()
With LTO enabled, the compiler might think that "len" is not initialized.
That is even a correct assumption, if the compiler does not understand the
API of sendmsg() and that sendmsg() is supposed to set a negative errno.

Work around by initializing the variable.

    shared/n-dhcp4/src/n-dhcp4-c-connection.c: In function n_dhcp4_c_connection_send_request:
    shared/n-dhcp4/src/n-dhcp4-socket.c:368:19: error: len may be used uninitialized in this function [-Werror=maybe-uninitialized]
             } else if (len != n_buf) {
                       ^
    shared/n-dhcp4/src/n-dhcp4-socket.c:351:23: note: len was declared here
             size_t n_buf, len;
                           ^
2021-01-11 19:03:28 +01:00
..
util n-dhcp4/packet: avoid compiler warning in n_dhcp4_c_socket_packet_recv() 2020-08-17 15:14:11 +02:00
libndhcp4.sym n-dhcp4: add n_dhcp4_client_lease_get_server_identifier() 2020-08-26 17:08:15 +02:00
meson.build nettools: reimport nettools' n-dhcp4 and rework logging 2020-06-03 22:34:22 +02:00
n-dhcp4-c-connection.c n-dhcp4/connection: avoid compiler warning in n_dhcp4_c_connection_connect() about fd_udp uninitialized 2020-08-17 15:15:17 +02:00
n-dhcp4-c-lease.c n-dhcp4: add n_dhcp4_client_lease_get_server_identifier() 2020-08-26 17:08:15 +02:00
n-dhcp4-c-probe.c all: fix minor typos 2020-07-07 11:33:46 +02:00
n-dhcp4-client.c all: fix minor typos 2020-07-07 11:33:46 +02:00
n-dhcp4-incoming.c n-dhcp4: accept options that are longer than requested 2020-01-25 11:31:58 +01:00
n-dhcp4-outgoing.c n-dhcp4: fix initialization of the 'secs' DHCP header field 2020-02-10 16:36:25 +01:00
n-dhcp4-private.h nettools: reimport nettools' n-dhcp4 2020-07-07 11:15:26 +02:00
n-dhcp4-s-connection.c all: fix minor typos 2020-07-07 11:33:46 +02:00
n-dhcp4-s-lease.c Merge commit 'e23b3c9c3ac86b065eef002fa5c4321cc4a87df2' as 'shared/n-dhcp4' 2019-05-25 02:02:04 +02:00
n-dhcp4-server.c Merge commit 'e23b3c9c3ac86b065eef002fa5c4321cc4a87df2' as 'shared/n-dhcp4' 2019-05-25 02:02:04 +02:00
n-dhcp4-socket.c n-dhcp4: work around compiler warning in n_dhcp4_socket_packet_send() 2021-01-11 19:03:28 +01:00
n-dhcp4.h n-dhcp4: add n_dhcp4_client_lease_get_server_identifier() 2020-08-26 17:08:15 +02:00
test-api.c n-dhcp4/lease: expose the server IP address 2019-11-18 13:34:09 +01:00
test-connection.c nettools: reimport nettools' n-dhcp4 and rework logging 2020-06-03 22:34:22 +02:00
test-message.c Merge commit 'e23b3c9c3ac86b065eef002fa5c4321cc4a87df2' as 'shared/n-dhcp4' 2019-05-25 02:02:04 +02:00
test-run-client.c n-dhcp4: revert "all: remove unnecessary <netinet/ether.h> includes" 2021-01-11 10:06:17 +01:00
test-socket.c Merge commit 'e23b3c9c3ac86b065eef002fa5c4321cc4a87df2' as 'shared/n-dhcp4' 2019-05-25 02:02:04 +02:00
test.h all: fix minor typos 2020-07-07 11:33:46 +02:00