summaryrefslogtreecommitdiff
path: root/ac3dec/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ac3dec/debug.c')
-rw-r--r--ac3dec/debug.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/ac3dec/debug.c b/ac3dec/debug.c
index b7d6a3b0..b84511d7 100644
--- a/ac3dec/debug.c
+++ b/ac3dec/debug.c
@@ -31,18 +31,8 @@ static int debug_level = -1;
// We could potentially have multiple levels of debug info
int debug_is_on(void)
{
- char *env_var;
-
- if(debug_level < 0)
- {
- env_var = getenv("AC3_DEBUG");
-
- if (env_var)
- {
- debug_level = 1;
- }
- else
- debug_level = 0;
+ if(debug_level < 0) {
+ debug_level = getenv ("AC3_DEBUG") ? 1 : 0;
}
return debug_level;
@@ -52,7 +42,7 @@ int debug_is_on(void)
#ifndef __GNUC__
void dprintf(char fmt[],...)
{
- int foo = 0;
+ return;
}
#endif