diff options
author | 2013-11-13 22:38:22 +0000 | |
---|---|---|
committer | 2013-11-13 22:38:22 +0000 | |
commit | d418f94b3448bc0560d1f8deaf40532a3b23b905 (patch) | |
tree | 90bb9838182a2126f0ae56c3c2739d65aabe4b4e /lib/libsndio/debug.c | |
parent | repair prototypes (diff) | |
download | wireguard-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.c | 14 |
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) |