diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-10-14 15:37:02 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-10-14 15:37:02 +0100 |
commit | 317bf4efb5e72a6a0154446915f5839ab01c40da (patch) | |
tree | 25cb96550d1466d86e49dc9ec320983fa4a3600b /plugins | |
parent | a8f8a94c917a97c40e8e43997b12290bc9264c09 (diff) |
console plugin: use a better-namespaced global variable
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/console/debug.c | 6 | ||||
-rw-r--r-- | plugins/console/debug.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/console/debug.c b/plugins/console/debug.c index 29dcf161b..251549a6d 100644 --- a/plugins/console/debug.c +++ b/plugins/console/debug.c @@ -21,7 +21,7 @@ #include "console/debug.h" -int debug = 0; +int gabble_console_debug = 0; static const GDebugKey debug_keys[] = { { "console", 1 }, @@ -31,6 +31,6 @@ static const GDebugKey debug_keys[] = { void gabble_console_debug_init (void) { - debug = g_parse_debug_string (g_getenv ("GABBLE_DEBUG"), debug_keys, - G_N_ELEMENTS (debug_keys) - 1); + gabble_console_debug = g_parse_debug_string (g_getenv ("GABBLE_DEBUG"), + debug_keys, G_N_ELEMENTS (debug_keys) - 1); } diff --git a/plugins/console/debug.h b/plugins/console/debug.h index 78031722d..afe94c922 100644 --- a/plugins/console/debug.h +++ b/plugins/console/debug.h @@ -17,11 +17,11 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -extern int debug; +extern int gabble_console_debug; #define DEBUG(format, ...) \ G_STMT_START { \ - if (debug != 0) \ + if (gabble_console_debug != 0) \ g_debug ("%s: " format, G_STRFUNC, ## __VA_ARGS__); \ } G_STMT_END |