Commit 3f3224d8 authored by Keith Packard's avatar Keith Packard Committed by Carles Cufi
Browse files

subsys/net: Labels cannot be applied to declarations



C only permits labels on statements, not declarations.  Separate the
declarations from the assignments so that the labels can target
statements instead.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
parent 6dd86fdb
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -167,10 +167,10 @@ static void tcp_server_session(void)
				goto use_existing_ipv4;
			}
		} else {
		use_existing_ipv4:
			/* Use existing IP */
			const struct in_addr *addr =
				zperf_get_default_if_in4_addr();
			const struct in_addr *addr;
use_existing_ipv4:
			addr = zperf_get_default_if_in4_addr();
			if (!addr) {
				NET_ERR("Unable to get IPv4 by default");
				goto error;
@@ -215,10 +215,10 @@ static void tcp_server_session(void)
				goto use_existing_ipv6;
			}
		} else {
		use_existing_ipv6:
			/* Use existing IP */
			const struct in6_addr *addr =
				zperf_get_default_if_in6_addr();
			const struct in6_addr *addr;
use_existing_ipv6:
			addr = zperf_get_default_if_in6_addr();
			if (!addr) {
				NET_ERR("Unable to get IPv6 by default");
				goto error;