diff options
author | 2006-12-15 05:52:06 +0000 | |
---|---|---|
committer | 2006-12-15 05:52:06 +0000 | |
commit | 0270d81ab3ad34c8da329beb469f26e126527c58 (patch) | |
tree | b85ee1ac9140547914ba15feec7fe37957004006 | |
parent | Nuke GEMDOSFS. Unused part of unused atari port. Simplifies (diff) | |
download | wireguard-openbsd-0270d81ab3ad34c8da329beb469f26e126527c58.tar.xz wireguard-openbsd-0270d81ab3ad34c8da329beb469f26e126527c58.zip |
reduce RFC2292/3542 #ifdef.
-rw-r--r-- | libexec/tftpd/tftpd.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c index 5643137c7bf..d971cdd5f35 100644 --- a/libexec/tftpd/tftpd.c +++ b/libexec/tftpd/tftpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tftpd.c,v 1.53 2006/12/09 00:47:01 itojun Exp $ */ +/* $OpenBSD: tftpd.c,v 1.54 2006/12/15 05:52:06 itojun Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -37,7 +37,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)tftpd.c 5.13 (Berkeley) 2/26/91";*/ -static char rcsid[] = "$OpenBSD: tftpd.c,v 1.53 2006/12/09 00:47:01 itojun Exp $"; +static char rcsid[] = "$OpenBSD: tftpd.c,v 1.54 2006/12/15 05:52:06 itojun Exp $"; #endif /* not lint */ /* @@ -251,19 +251,11 @@ main(int argc, char *argv[]) } break; case AF_INET6: -#ifdef IPV6_RECVPKTINFO if (setsockopt(fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, &on, sizeof(on)) == -1) { syslog(LOG_ERR, "setsockopt(IPV6_RECVPKTINFO): %m"); exit (1); } -#else - if (setsockopt(fd, IPPROTO_IPV6, IPV6_PKTINFO, &on, - sizeof(on)) == -1) { - syslog(LOG_ERR, "setsockopt(IPV6_PKTINFO): %m"); - exit (1); - } -#endif break; } |