summaryrefslogtreecommitdiffstats
path: root/lib/libwrap/misc.c
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2002-06-07 03:32:04 +0000
committeritojun <itojun@openbsd.org>2002-06-07 03:32:04 +0000
commit67e33fe46ba81e4790a09ef4032bb26535108cbc (patch)
treeb8ac4b99c4cb69588c57c201224e268c0bcc3e11 /lib/libwrap/misc.c
parentBackout previous change. Since it requires people to upgrade gcc, we want (diff)
downloadwireguard-openbsd-67e33fe46ba81e4790a09ef4032bb26535108cbc.tar.xz
wireguard-openbsd-67e33fe46ba81e4790a09ef4032bb26535108cbc.zip
support scoped IPv6 address.
no visible API change, old config files work just fine. now you can use expressions like "ALL: [fe80::%lo0/64]". theo ok
Diffstat (limited to 'lib/libwrap/misc.c')
-rw-r--r--lib/libwrap/misc.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/libwrap/misc.c b/lib/libwrap/misc.c
index 3ba0caaf023..8c5294cc795 100644
--- a/lib/libwrap/misc.c
+++ b/lib/libwrap/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.4 2000/10/14 00:56:15 itojun Exp $ */
+/* $OpenBSD: misc.c,v 1.5 2002/06/07 03:32:04 itojun Exp $ */
/*
* Misc routines that are used by tcpd and by tcpdchk.
@@ -10,7 +10,7 @@
#if 0
static char sccsic[] = "@(#) misc.c 1.2 96/02/11 17:01:29";
#else
-static char rcsid[] = "$OpenBSD: misc.c,v 1.4 2000/10/14 00:56:15 itojun Exp $";
+static char rcsid[] = "$OpenBSD: misc.c,v 1.5 2002/06/07 03:32:04 itojun Exp $";
#endif
#endif
@@ -23,10 +23,6 @@ static char rcsid[] = "$OpenBSD: misc.c,v 1.4 2000/10/14 00:56:15 itojun Exp $";
#include "tcpd.h"
-#ifndef INADDR_NONE
-#define INADDR_NONE (-1) /* XXX should be 0xffffffff */
-#endif
-
/* xgets - fgets() with backslash-newline stripping */
char *xgets(ptr, len, fp)
@@ -60,13 +56,6 @@ char *split_at(string, delimiter)
char *string;
int delimiter;
{
-#if 0
- char *cp;
-
- if ((cp = strchr(string, delimiter)) != 0)
- *cp++ = 0;
- return (cp);
-#else
char *cp;
int bracket;
@@ -88,7 +77,6 @@ int delimiter;
}
}
return NULL;
-#endif
}
/* dot_quad_addr_new - convert dotted quad to internal form */