Diff between 0093cd61b1e4f199bca45f8c2f8eb2d5a30e847d and a18ad9bb9e4b05e5b3410db9cb11af415a473d4c

Changed Files

File Additions Deletions Status
mesh/net.c +3 -1 modified

Full Patch

diff --git a/mesh/net.c b/mesh/net.c
index c9f057f..30dc803 100644
--- a/mesh/net.c
+++ b/mesh/net.c
@@ -3316,7 +3316,9 @@ unsigned int mesh_net_app_send(struct mesh_net *net, bool frnd_cred,
 
 	result = true;
 	if (!IS_UNICAST(dst) && seg_max) {
-		for (int i = 0; i < 4; i++) {
+		int i;
+
+		for (i = 0; i < 4; i++) {
 			for (seg = 0; seg <= seg_max && result; seg++)
 				result = send_seg(net, payload, seg);
 		}