summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorEsben Norby <norby@cvs.openbsd.org>2006-02-01 18:31:48 +0000
committerEsben Norby <norby@cvs.openbsd.org>2006-02-01 18:31:48 +0000
commitaa6f6722c5e2b167e71989b5ae1abf5991f01217 (patch)
treed0a06ce92bfd93e092f9136311a720922221bd7e /usr.sbin
parenta20668b413d0d6b853fc2c680dad060a4cec6fce (diff)
zap unused function.
ok claudio@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ospfd/imsg.c18
-rw-r--r--usr.sbin/ospfd/ospfd.h3
2 files changed, 2 insertions, 19 deletions
diff --git a/usr.sbin/ospfd/imsg.c b/usr.sbin/ospfd/imsg.c
index 16f0dccb3a4..b4270db7a2a 100644
--- a/usr.sbin/ospfd/imsg.c
+++ b/usr.sbin/ospfd/imsg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imsg.c,v 1.4 2005/04/26 15:18:22 henning Exp $ */
+/* $OpenBSD: imsg.c,v 1.5 2006/02/01 18:31:47 norby Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -203,19 +203,3 @@ imsg_free(struct imsg *imsg)
{
free(imsg->data);
}
-
-int
-imsg_get_fd(struct imsgbuf *ibuf)
-{
- int fd;
- struct imsg_fd *ifd;
-
- if ((ifd = TAILQ_FIRST(&ibuf->fds)) == NULL)
- return (-1);
-
- fd = ifd->fd;
- TAILQ_REMOVE(&ibuf->fds, ifd, entry);
- free(ifd);
-
- return (fd);
-}
diff --git a/usr.sbin/ospfd/ospfd.h b/usr.sbin/ospfd/ospfd.h
index fb599bf0af2..62e676dde7c 100644
--- a/usr.sbin/ospfd/ospfd.h
+++ b/usr.sbin/ospfd/ospfd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfd.h,v 1.41 2006/01/12 15:10:02 claudio Exp $ */
+/* $OpenBSD: ospfd.h,v 1.42 2006/02/01 18:31:47 norby Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -498,7 +498,6 @@ struct buf *imsg_create(struct imsgbuf *, enum imsg_type, u_int32_t, pid_t,
int imsg_add(struct buf *, void *, u_int16_t);
int imsg_close(struct imsgbuf *, struct buf *);
void imsg_free(struct imsg *);
-int imsg_get_fd(struct imsgbuf *);
void imsg_event_add(struct imsgbuf *); /* needs to be provided externally */
/* in_cksum.c */