Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/crypto/opencrypto Since sizeof() is unsigned, use an u...



details:   https://anonhg.NetBSD.org/src/rev/644c65fd63cd
branches:  trunk
changeset: 326052:644c65fd63cd
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Thu Jan 16 22:06:45 2014 +0000

description:
Since sizeof() is unsigned, use an unsigned int for the loop index.

Fixes latest build break.

diffstat:

 tests/crypto/opencrypto/h_xcbcmac.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 36d3c59ec055 -r 644c65fd63cd tests/crypto/opencrypto/h_xcbcmac.c
--- a/tests/crypto/opencrypto/h_xcbcmac.c       Thu Jan 16 21:48:41 2014 +0000
+++ b/tests/crypto/opencrypto/h_xcbcmac.c       Thu Jan 16 22:06:45 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: h_xcbcmac.c,v 1.2 2014/01/16 18:09:55 pgoyette Exp $ */
+/* $NetBSD: h_xcbcmac.c,v 1.3 2014/01/16 22:06:45 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -72,7 +72,8 @@
 int
 main(void)
 {
-       int fd, res, i;
+       int fd, res;
+       unsigned int i;
        struct session_op cs;
        struct crypt_op co;
        unsigned char buf[16];



Home | Main Index | Thread Index | Old Index