summaryrefslogtreecommitdiff
path: root/usr.bin/sndiod
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2015-02-16 06:28:06 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2015-02-16 06:28:06 +0000
commiteeab4588082fc2e106e5330e61fadd81a6f8a9cc (patch)
tree8f68476008dd401d13fd87261660a0645b667a74 /usr.bin/sndiod
parent2a70368ad696921a9236cc813e5bfd0ab6b69dfd (diff)
add missing protos, fix spacing
Diffstat (limited to 'usr.bin/sndiod')
-rw-r--r--usr.bin/sndiod/dev.h4
-rw-r--r--usr.bin/sndiod/siofile.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/sndiod/dev.h b/usr.bin/sndiod/dev.h
index da4edb673b5..01f25e8fac8 100644
--- a/usr.bin/sndiod/dev.h
+++ b/usr.bin/sndiod/dev.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev.h,v 1.8 2014/03/17 17:16:06 ratchov Exp $ */
+/* $OpenBSD: dev.h,v 1.9 2015/02/16 06:28:05 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -199,6 +199,8 @@ void dev_del(struct dev *);
void dev_adjpar(struct dev *, int, int, int, int, int);
int dev_init(struct dev *);
void dev_done(struct dev *);
+int dev_ref(struct dev *);
+void dev_unref(struct dev *);
int dev_getpos(struct dev *);
unsigned int dev_roundof(struct dev *, unsigned int);
diff --git a/usr.bin/sndiod/siofile.c b/usr.bin/sndiod/siofile.c
index 26f69bd695f..7dee3a7d3cd 100644
--- a/usr.bin/sndiod/siofile.c
+++ b/usr.bin/sndiod/siofile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: siofile.c,v 1.5 2014/10/08 16:44:47 ratchov Exp $ */
+/* $OpenBSD: siofile.c,v 1.6 2015/02/16 06:28:05 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -229,7 +229,7 @@ dev_sio_close(struct dev *d)
}
#endif
file_del(d->sio.file);
- sio_close(d->sio.hdl);
+ sio_close(d->sio.hdl);
}
void