diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-07-06 05:01:08 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-07-06 05:01:08 +0000 |
commit | 69b8f9e7beeddd85a5c5c83ce2f81f9c619d1b0f (patch) | |
tree | 6a2f3d2453234675552f7f626f1f66f19037315b /sbin | |
parent | 6f2defb96fa2f21cd08fdc9561594e0a2a6da28e (diff) |
Fix unused/uninitialized variables.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ipsecadm/ipsecadm.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sbin/ipsecadm/ipsecadm.c b/sbin/ipsecadm/ipsecadm.c index b71e6ba26cc..d54da65fdbb 100644 --- a/sbin/ipsecadm/ipsecadm.c +++ b/sbin/ipsecadm/ipsecadm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsecadm.c,v 1.60 2001/07/05 08:38:36 jjbg Exp $ */ +/* $OpenBSD: ipsecadm.c,v 1.61 2001/07/06 05:01:07 angelos Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -116,10 +116,8 @@ transform xf[] = { int addrparse(const char *str, struct sockaddr *addr, struct sockaddr *mask) { - u_long prefixlen; - char *p, *sp, *ep; - char c; - int ret = 0; + u_long prefixlen = 0; + char *p = NULL, *sp, *ep; struct addrinfo hints, *res = NULL; u_char *ap; int bitlen; @@ -672,7 +670,6 @@ main(int argc, char **argv) (i + 1 < argc)) { struct stat sb; - unsigned char *pptr; int fd; if (!(mode & ESP_NEW)) |