remove unused variables
This commit is contained in:
parent
7c7c6fd125
commit
7eb6f06c8c
|
@ -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 $ */
|
/* $KAME: parse.y,v 1.81 2003/07/01 04:01:48 itojun Exp $ */
|
||||||
|
|
||||||
|
@ -954,7 +954,6 @@ setkeymsg_spdaddr(type, upper, policy, srcs, splen, dsts, dplen)
|
||||||
int plen;
|
int plen;
|
||||||
struct sockaddr *sa;
|
struct sockaddr *sa;
|
||||||
int salen;
|
int salen;
|
||||||
struct sadb_x_policy *sp;
|
|
||||||
#ifdef HAVE_POLICY_FWD
|
#ifdef HAVE_POLICY_FWD
|
||||||
struct sadb_x_ipsecrequest *ps = NULL;
|
struct sadb_x_ipsecrequest *ps = NULL;
|
||||||
int saved_level, saved_id = 0;
|
int saved_level, saved_id = 0;
|
||||||
|
@ -969,7 +968,6 @@ setkeymsg_spdaddr(type, upper, policy, srcs, splen, dsts, dplen)
|
||||||
setkeymsg0(msg, type, SADB_SATYPE_UNSPEC, 0);
|
setkeymsg0(msg, type, SADB_SATYPE_UNSPEC, 0);
|
||||||
l = sizeof(struct sadb_msg);
|
l = sizeof(struct sadb_msg);
|
||||||
|
|
||||||
sp = (struct sadb_x_policy*) (buf + l);
|
|
||||||
memcpy(buf + l, policy->buf, policy->len);
|
memcpy(buf + l, policy->buf, policy->len);
|
||||||
l += policy->len;
|
l += policy->len;
|
||||||
|
|
||||||
|
@ -1094,11 +1092,10 @@ setkeymsg_spdaddr_tag(type, tag, policy)
|
||||||
{
|
{
|
||||||
struct sadb_msg *msg;
|
struct sadb_msg *msg;
|
||||||
char buf[BUFSIZ];
|
char buf[BUFSIZ];
|
||||||
int l, l0;
|
int l;
|
||||||
#ifdef SADB_X_EXT_TAG
|
#ifdef SADB_X_EXT_TAG
|
||||||
struct sadb_x_tag m_tag;
|
struct sadb_x_tag m_tag;
|
||||||
#endif
|
#endif
|
||||||
int n;
|
|
||||||
|
|
||||||
msg = (struct sadb_msg *)buf;
|
msg = (struct sadb_msg *)buf;
|
||||||
|
|
||||||
|
@ -1109,9 +1106,6 @@ setkeymsg_spdaddr_tag(type, tag, policy)
|
||||||
memcpy(buf + l, policy->buf, policy->len);
|
memcpy(buf + l, policy->buf, policy->len);
|
||||||
l += policy->len;
|
l += policy->len;
|
||||||
|
|
||||||
l0 = l;
|
|
||||||
n = 0;
|
|
||||||
|
|
||||||
#ifdef SADB_X_EXT_TAG
|
#ifdef SADB_X_EXT_TAG
|
||||||
memset(&m_tag, 0, sizeof(m_tag));
|
memset(&m_tag, 0, sizeof(m_tag));
|
||||||
m_tag.sadb_x_tag_len = PFKEY_UNIT64(sizeof(m_tag));
|
m_tag.sadb_x_tag_len = PFKEY_UNIT64(sizeof(m_tag));
|
||||||
|
|
|
@ -427,7 +427,6 @@ int doit(char *ctx[4])
|
||||||
BIO *c_bio=NULL;
|
BIO *c_bio=NULL;
|
||||||
BIO *s_bio=NULL;
|
BIO *s_bio=NULL;
|
||||||
int c_r,c_w,s_r,s_w;
|
int c_r,c_w,s_r,s_w;
|
||||||
int c_want,s_want;
|
|
||||||
int i;
|
int i;
|
||||||
int done=0;
|
int done=0;
|
||||||
int c_write,s_write;
|
int c_write,s_write;
|
||||||
|
@ -466,8 +465,6 @@ int doit(char *ctx[4])
|
||||||
|
|
||||||
c_r=0; s_r=1;
|
c_r=0; s_r=1;
|
||||||
c_w=1; s_w=0;
|
c_w=1; s_w=0;
|
||||||
c_want=W_WRITE;
|
|
||||||
s_want=0;
|
|
||||||
c_write=1,s_write=0;
|
c_write=1,s_write=0;
|
||||||
|
|
||||||
/* We can always do writes */
|
/* We can always do writes */
|
||||||
|
|
Loading…
Reference in New Issue