summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2001-07-01 20:51:59 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2001-07-01 20:51:59 +0000
commitc17dc6c28884fce824202bf1f92b95234ecfb23e (patch)
tree37cbd67b4746d5fb022028135f34c315c9b0a3db
parent984a723c9274fa719d9d436a914d3899d5c626f8 (diff)
Remove warnings from non-DDEBUG case; angelos told me.
-rw-r--r--sbin/isakmpd/regress/util/utiltest.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sbin/isakmpd/regress/util/utiltest.c b/sbin/isakmpd/regress/util/utiltest.c
index facb7e4af46..a1647c6b408 100644
--- a/sbin/isakmpd/regress/util/utiltest.c
+++ b/sbin/isakmpd/regress/util/utiltest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: utiltest.c,v 1.1 2001/07/01 19:25:11 niklas Exp $ */
+/* $OpenBSD: utiltest.c,v 1.2 2001/07/01 20:51:58 niklas Exp $ */
/*
* Copyright (c) 2001 Niklas Hallqvist. All rights reserved.
@@ -57,9 +57,12 @@ main (int argc, char *argv[])
int test_1 (char *address, char *port, int ok)
{
struct sockaddr *sa;
+#ifdef DEBUG
struct sockaddr_in *sai;
struct sockaddr_in6 *sai6;
- int i, rv;
+ int i;
+#endif
+ int rv;
printf ("test_1 (\"%s\", \"%s\") ", address, port);
rv = text2sockaddr (address, port, &sa) == ok;
@@ -82,6 +85,6 @@ int test_1 (char *address, char *port, int ok)
printf ("%02x", sai6->sin6_addr.s6_addr[i]);
printf (" port %d\n", ntohs (sai6->sin6_port));
}
- return rv;
#endif
+ return rv;
}