From bd219fc700c6c711d12b20fe57e99c6d09c797b8 Mon Sep 17 00:00:00 2001 From: ratchov Date: Thu, 28 Jan 2021 11:02:28 +0000 Subject: [PATCH] Drop unused dev_nctl() function and few unused prototypes --- usr.bin/sndiod/dev.c | 19 +------------------ usr.bin/sndiod/dev.h | 5 ++++- 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 * @@ -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 * @@ -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 -- 2.20.1