summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2021-01-28 11:02:28 +0000
committerratchov <ratchov@openbsd.org>2021-01-28 11:02:28 +0000
commitbd219fc700c6c711d12b20fe57e99c6d09c797b8 (patch)
treed024ecb25cdec3eb321cfcc58b837a6c940f136c
parenthandle "once" rules before letting pfsync defer tx of a packet. (diff)
downloadwireguard-openbsd-bd219fc700c6c711d12b20fe57e99c6d09c797b8.tar.xz
wireguard-openbsd-bd219fc700c6c711d12b20fe57e99c6d09c797b8.zip
Drop unused dev_nctl() function and few unused prototypes
-rw-r--r--usr.bin/sndiod/dev.c19
-rw-r--r--usr.bin/sndiod/dev.h5
2 files changed, 5 insertions, 19 deletions
diff --git a/usr.bin/sndiod/dev.c b/usr.bin/sndiod/dev.c
index 6548a92178a..299a9595a49 100644
--- a/usr.bin/sndiod/dev.c
+++ b/usr.bin/sndiod/dev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev.c,v 1.77 2020/07/19 11:13:35 ratchov Exp $ */
+/* $OpenBSD: dev.c,v 1.78 2021/01/28 11:02:28 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -79,14 +79,9 @@ void slot_ctlname(struct slot *, char *, size_t);
void slot_log(struct slot *);
void slot_del(struct slot *);
void slot_setvol(struct slot *, unsigned int);
-void slot_attach(struct slot *);
void slot_ready(struct slot *);
void slot_allocbufs(struct slot *);
void slot_freebufs(struct slot *);
-void slot_initconv(struct slot *);
-void slot_start(struct slot *);
-void slot_detach(struct slot *);
-void slot_stop(struct slot *);
void slot_skip_update(struct slot *);
void slot_write(struct slot *);
void slot_read(struct slot *);
@@ -2575,15 +2570,3 @@ dev_label(struct dev *d, int i)
strlcpy(c->node0.name, name, CTL_NAMEMAX);
c->desc_mask = ~0;
}
-
-int
-dev_nctl(struct dev *d)
-{
- struct ctl *c;
- int n;
-
- n = 0;
- for (c = d->ctl_list; c != NULL; c = c->next)
- n++;
- return n;
-}
diff --git a/usr.bin/sndiod/dev.h b/usr.bin/sndiod/dev.h
index 735f7d1386f..74408313124 100644
--- a/usr.bin/sndiod/dev.h
+++ b/usr.bin/sndiod/dev.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev.h,v 1.29 2020/06/28 05:21:39 ratchov Exp $ */
+/* $OpenBSD: dev.h,v 1.30 2021/01/28 11:02:28 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -309,6 +309,9 @@ void slot_start(struct slot *);
void slot_stop(struct slot *);
void slot_read(struct slot *);
void slot_write(struct slot *);
+void slot_initconv(struct slot *);
+void slot_attach(struct slot *);
+void slot_detach(struct slot *);
/*
* control related functions