Module Name: src
Committed By: jmmv
Date: Sat May 14 16:27:50 UTC 2011
Modified Files:
src/sys/crypto/rijndael: rijndael-api-fst.c
Log Message:
Declare for-loop control variable outside of the for statement to prevent
a warning and therefore fix the build.
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/crypto/rijndael/rijndael-api-fst.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/crypto/rijndael/rijndael-api-fst.c
diff -u src/sys/crypto/rijndael/rijndael-api-fst.c:1.22 src/sys/crypto/rijndael/rijndael-api-fst.c:1.23
--- src/sys/crypto/rijndael/rijndael-api-fst.c:1.22 Sat May 14 01:59:19 2011
+++ src/sys/crypto/rijndael/rijndael-api-fst.c Sat May 14 16:27:49 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: rijndael-api-fst.c,v 1.22 2011/05/14 01:59:19 christos Exp $ */
+/* $NetBSD: rijndael-api-fst.c,v 1.23 2011/05/14 16:27:49 jmmv Exp $ */
/**
* rijndael-api-fst.c
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rijndael-api-fst.c,v 1.22 2011/05/14 01:59:19 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rijndael-api-fst.c,v 1.23 2011/05/14 16:27:49 jmmv Exp $");
#include <sys/param.h>
#ifdef _KERNEL
@@ -54,7 +54,9 @@
static void xor16(uint8_t *d, const uint8_t *a, const uint8_t* b)
{
- for (size_t i = 0; i < 4; i++) {
+ size_t i;
+
+ for (i = 0; i < 4; i++) {
*d++ = *a++ ^ *b++;
*d++ = *a++ ^ *b++;
*d++ = *a++ ^ *b++;