Module Name: src
Committed By: andvar
Date: Sun Sep 24 08:20:06 UTC 2023
Modified Files:
src/sys/arch/macppc/dev: mesh.c
Log Message:
define i variable in for loop.
mesh_msgin() doesn't have one defined in the function scope.
fixes MESH_DEBUG enabled build for macppc.
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/macppc/dev/mesh.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/macppc/dev/mesh.c
diff -u src/sys/arch/macppc/dev/mesh.c:1.42 src/sys/arch/macppc/dev/mesh.c:1.43
--- src/sys/arch/macppc/dev/mesh.c:1.42 Sat Aug 7 16:18:57 2021
+++ src/sys/arch/macppc/dev/mesh.c Sun Sep 24 08:20:06 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: mesh.c,v 1.42 2021/08/07 16:18:57 thorpej Exp $ */
+/* $NetBSD: mesh.c,v 1.43 2023/09/24 08:20:06 andvar Exp $ */
/*-
* Copyright (c) 2000 Tsubai Masanari.
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mesh.c,v 1.42 2021/08/07 16:18:57 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mesh.c,v 1.43 2023/09/24 08:20:06 andvar Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -694,7 +694,7 @@ mesh_msgin(struct mesh_softc *sc, struct
gotit:
#ifdef MESH_DEBUG
printf("msgin:");
- for (i = 0; i < sc->sc_imsglen; i++)
+ for (int i = 0; i < sc->sc_imsglen; i++)
printf(" 0x%02x", sc->sc_imsg[i]);
printf("\n");
#endif