Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/opencrypto use macro instead of immediate value
details: https://anonhg.NetBSD.org/src/rev/5f2a900996ee
branches: trunk
changeset: 353503:5f2a900996ee
user: knakahara <knakahara%NetBSD.org@localhost>
date: Wed May 10 03:15:32 2017 +0000
description:
use macro instead of immediate value
diffstat:
sys/opencrypto/crypto.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e161a4a0d4bb -r 5f2a900996ee sys/opencrypto/crypto.c
--- a/sys/opencrypto/crypto.c Wed May 10 02:46:33 2017 +0000
+++ b/sys/opencrypto/crypto.c Wed May 10 03:15:32 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crypto.c,v 1.59 2017/05/02 03:17:43 knakahara Exp $ */
+/* $NetBSD: crypto.c,v 1.60 2017/05/10 03:15:32 knakahara Exp $ */
/* $FreeBSD: src/sys/opencrypto/crypto.c,v 1.4.2.5 2003/02/26 00:14:05 sam Exp $ */
/* $OpenBSD: crypto.c,v 1.41 2002/07/17 23:52:38 art Exp $ */
@@ -53,7 +53,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.59 2017/05/02 03:17:43 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.60 2017/05/10 03:15:32 knakahara Exp $");
#include <sys/param.h>
#include <sys/reboot.h>
@@ -635,7 +635,7 @@
cap->cc_max_op_len[alg] = 0;
/* Was this the last algorithm ? */
- for (i = 1; i <= CRYPTO_ALGORITHM_MAX; i++)
+ for (i = CRYPTO_ALGORITHM_MIN; i <= CRYPTO_ALGORITHM_MAX; i++)
if (cap->cc_alg[i] != 0)
break;
Home |
Main Index |
Thread Index |
Old Index