summaryrefslogtreecommitdiffstats
path: root/lib/libsndio/debug.c
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2013-11-13 22:38:22 +0000
committerratchov <ratchov@openbsd.org>2013-11-13 22:38:22 +0000
commitd418f94b3448bc0560d1f8deaf40532a3b23b905 (patch)
tree90bb9838182a2126f0ae56c3c2739d65aabe4b4e /lib/libsndio/debug.c
parentrepair prototypes (diff)
downloadwireguard-openbsd-d418f94b3448bc0560d1f8deaf40532a3b23b905.tar.xz
wireguard-openbsd-d418f94b3448bc0560d1f8deaf40532a3b23b905.zip
Prefix by '_' symbols that are not part of the API.
ok deraadt, guenther
Diffstat (limited to 'lib/libsndio/debug.c')
-rw-r--r--lib/libsndio/debug.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libsndio/debug.c b/lib/libsndio/debug.c
index b592506494d..e1542bc47cf 100644
--- a/lib/libsndio/debug.c
+++ b/lib/libsndio/debug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: debug.c,v 1.2 2011/11/15 08:05:22 ratchov Exp $ */
+/* $OpenBSD: debug.c,v 1.3 2013/11/13 22:38:22 ratchov Exp $ */
/*
* Copyright (c) 2011 Alexandre Ratchov <alex@caoua.org>
*
@@ -25,23 +25,23 @@
/*
* debug level, -1 means uninitialized
*/
-int sndio_debug = -1;
+int _sndio_debug = -1;
void
-sndio_debug_init(void)
+_sndio_debug_init(void)
{
char *dbg;
- if (sndio_debug < 0) {
+ if (_sndio_debug < 0) {
dbg = issetugid() ? NULL : getenv("SNDIO_DEBUG");
- if (!dbg || sscanf(dbg, "%u", &sndio_debug) != 1)
- sndio_debug = 0;
+ if (!dbg || sscanf(dbg, "%u", &_sndio_debug) != 1)
+ _sndio_debug = 0;
}
}
#endif
const char *
-sndio_parsetype(const char *str, char *type)
+_sndio_parsetype(const char *str, char *type)
{
while (*type) {
if (*type != *str)