Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/dist/ipsec-tools/src/racoon Remove unused 'error' var...
details: https://anonhg.NetBSD.org/src/rev/b5171084b1de
branches: trunk
changeset: 361961:b5171084b1de
user: maxv <maxv%NetBSD.org@localhost>
date: Sat May 19 20:21:23 2018 +0000
description:
Remove unused 'error' variables, it's obvious they should have no use.
diffstat:
crypto/dist/ipsec-tools/src/racoon/oakley.c | 17 +----------------
1 files changed, 1 insertions(+), 16 deletions(-)
diffs (94 lines):
diff -r d7a6efa8a860 -r b5171084b1de crypto/dist/ipsec-tools/src/racoon/oakley.c
--- a/crypto/dist/ipsec-tools/src/racoon/oakley.c Sat May 19 20:14:56 2018 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/oakley.c Sat May 19 20:21:23 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: oakley.c,v 1.26 2018/05/19 20:14:56 maxv Exp $ */
+/* $NetBSD: oakley.c,v 1.27 2018/05/19 20:21:23 maxv Exp $ */
/* Id: oakley.c,v 1.32 2006/05/26 12:19:46 manubsd Exp */
@@ -786,7 +786,6 @@
{
vchar_t *buf = 0, *res = 0;
int len;
- int error = -1;
/* create buffer */
len = 1 + sizeof(u_int32_t) + body->l;
@@ -811,8 +810,6 @@
if (res == NULL)
goto end;
- error = 0;
-
plog(LLV_DEBUG, LOCATION, NULL, "HASH computed:\n");
plogdump(LLV_DEBUG, res->v, res->l);
@@ -841,7 +838,6 @@
vchar_t *buf = NULL, *res = NULL;
char *p;
int len;
- int error = -1;
/* create buffer */
len = sizeof(u_int32_t) + body->l;
@@ -867,8 +863,6 @@
if (res == NULL)
goto end;
- error = 0;
-
plog(LLV_DEBUG, LOCATION, NULL, "HASH computed:\n");
plogdump(LLV_DEBUG, res->v, res->l);
@@ -893,7 +887,6 @@
vchar_t *buf = NULL, *res = NULL, *bp;
char *p, *bp2;
int len, bl;
- int error = -1;
#ifdef HAVE_GSSAPI
vchar_t *gsstokens = NULL;
#endif
@@ -986,8 +979,6 @@
if (res == NULL)
goto end;
- error = 0;
-
plog(LLV_DEBUG, LOCATION, NULL, "HASH (%s) computed:\n",
iph1->side == INITIATOR ? "init" : "resp");
plogdump(LLV_DEBUG, res->v, res->l);
@@ -1019,7 +1010,6 @@
vchar_t *hash = NULL; /* for signature mode */
char *p;
int len;
- int error = -1;
/* sanity check */
if (iph1->etype != ISAKMP_ETYPE_BASE) {
@@ -1133,8 +1123,6 @@
if (res == NULL)
goto end;
- error = 0;
-
plog(LLV_DEBUG, LOCATION, NULL, "HASH_I computed:\n");
plogdump(LLV_DEBUG, res->v, res->l);
@@ -1160,7 +1148,6 @@
vchar_t *hash = NULL;
char *p;
int len;
- int error = -1;
/* sanity check */
if (iph1->etype != ISAKMP_ETYPE_BASE) {
@@ -1259,8 +1246,6 @@
if (res == NULL)
goto end;
- error = 0;
-
plog(LLV_DEBUG, LOCATION, NULL, "HASH_R computed:\n");
plogdump(LLV_DEBUG, res->v, res->l);
Home |
Main Index |
Thread Index |
Old Index