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/525f1b73e8b3
branches:  trunk
changeset: 792792:525f1b73e8b3
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 9133f797f1e6 -r 525f1b73e8b3 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