diff options
author | Rainer Giedat <rainer@cvs.openbsd.org> | 2009-01-30 17:25:52 +0000 |
---|---|---|
committer | Rainer Giedat <rainer@cvs.openbsd.org> | 2009-01-30 17:25:52 +0000 |
commit | efcd6b70b566fb7da63bb366dd31bc65854ddbdd (patch) | |
tree | bfd2b69d3dbec8268a57fe9228802ede910b32b6 /usr.sbin/rtsold/rtsold.c | |
parent | dad15fcbdb3e2548120bb6e4d14860a7d0359d2d (diff) |
Delete code which was never used (rtsock.c is even not there).
old commit message from itojun:
"rtsock.c is omitted for simplicity, as it is not meaningful on openbsd."
Ok grunk@, naddy@
Diffstat (limited to 'usr.sbin/rtsold/rtsold.c')
-rw-r--r-- | usr.sbin/rtsold/rtsold.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/usr.sbin/rtsold/rtsold.c b/usr.sbin/rtsold/rtsold.c index 572032b9cb2..d26fa3442ab 100644 --- a/usr.sbin/rtsold/rtsold.c +++ b/usr.sbin/rtsold/rtsold.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsold.c,v 1.44 2008/08/13 17:24:54 sobrado Exp $ */ +/* $OpenBSD: rtsold.c,v 1.45 2009/01/30 17:25:51 rainer Exp $ */ /* $KAME: rtsold.c,v 1.75 2004/01/03 00:00:07 itojun Exp $ */ /* @@ -106,9 +106,6 @@ main(int argc, char *argv[]) struct timeval *timeout; char *argv0, *opts; struct pollfd set[2]; -#ifdef USE_RTSOCK - int rtsock; -#endif /* * Initialization @@ -222,16 +219,6 @@ main(int argc, char *argv[]) set[1].fd = -1; -#ifdef USE_RTSOCK - if ((rtsock = rtsock_open()) < 0) { - warnmsg(LOG_ERR, __func__, "failed to open a socket"); - exit(1); - /*NOTREACHED*/ - } - set[1].fd = rtsock; - set[1].events = POLLIN; -#endif - /* configuration per interface */ if (ifinit()) { warnmsg(LOG_ERR, __func__, @@ -297,10 +284,6 @@ main(int argc, char *argv[]) } /* packet reception */ -#ifdef USE_RTSOCK - if (set[1].revents & POLLIN) - rtsock_input(rtsock); -#endif if (set[0].revents & POLLIN) rtsol_input(s); } |