Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto remove unused variables
details: https://anonhg.NetBSD.org/src/rev/308218f56f8a
branches: trunk
changeset: 790787:308218f56f8a
user: christos <christos%NetBSD.org@localhost>
date: Sun Oct 20 21:17:28 2013 +0000
description:
remove unused variables
diffstat:
crypto/dist/ipsec-tools/src/setkey/parse.y | 10 ++--------
crypto/external/bsd/openssl/dist/crypto/threads/mttest.c | 3 ---
2 files changed, 2 insertions(+), 11 deletions(-)
diffs (68 lines):
diff -r 901be6dff260 -r 308218f56f8a crypto/dist/ipsec-tools/src/setkey/parse.y
--- a/crypto/dist/ipsec-tools/src/setkey/parse.y Sun Oct 20 21:16:54 2013 +0000
+++ b/crypto/dist/ipsec-tools/src/setkey/parse.y Sun Oct 20 21:17:28 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.y,v 1.15 2012/01/09 15:25:13 drochner Exp $ */
+/* $NetBSD: parse.y,v 1.16 2013/10/20 21:17:28 christos Exp $ */
/* $KAME: parse.y,v 1.81 2003/07/01 04:01:48 itojun Exp $ */
@@ -954,7 +954,6 @@
int plen;
struct sockaddr *sa;
int salen;
- struct sadb_x_policy *sp;
#ifdef HAVE_POLICY_FWD
struct sadb_x_ipsecrequest *ps = NULL;
int saved_level, saved_id = 0;
@@ -969,7 +968,6 @@
setkeymsg0(msg, type, SADB_SATYPE_UNSPEC, 0);
l = sizeof(struct sadb_msg);
- sp = (struct sadb_x_policy*) (buf + l);
memcpy(buf + l, policy->buf, policy->len);
l += policy->len;
@@ -1094,11 +1092,10 @@
{
struct sadb_msg *msg;
char buf[BUFSIZ];
- int l, l0;
+ int l;
#ifdef SADB_X_EXT_TAG
struct sadb_x_tag m_tag;
#endif
- int n;
msg = (struct sadb_msg *)buf;
@@ -1109,9 +1106,6 @@
memcpy(buf + l, policy->buf, policy->len);
l += policy->len;
- l0 = l;
- n = 0;
-
#ifdef SADB_X_EXT_TAG
memset(&m_tag, 0, sizeof(m_tag));
m_tag.sadb_x_tag_len = PFKEY_UNIT64(sizeof(m_tag));
diff -r 901be6dff260 -r 308218f56f8a crypto/external/bsd/openssl/dist/crypto/threads/mttest.c
--- a/crypto/external/bsd/openssl/dist/crypto/threads/mttest.c Sun Oct 20 21:16:54 2013 +0000
+++ b/crypto/external/bsd/openssl/dist/crypto/threads/mttest.c Sun Oct 20 21:17:28 2013 +0000
@@ -427,7 +427,6 @@
BIO *c_bio=NULL;
BIO *s_bio=NULL;
int c_r,c_w,s_r,s_w;
- int c_want,s_want;
int i;
int done=0;
int c_write,s_write;
@@ -466,8 +465,6 @@
c_r=0; s_r=1;
c_w=1; s_w=0;
- c_want=W_WRITE;
- s_want=0;
c_write=1,s_write=0;
/* We can always do writes */
Home |
Main Index |
Thread Index |
Old Index