telepathy-gabble: console plugin: use a better-namespaced global variable
Simon McVittie
smcv at kemper.freedesktop.org
Mon Oct 14 08:21:20 PDT 2013
Module: telepathy-gabble
Branch: master
Commit: 317bf4efb5e72a6a0154446915f5839ab01c40da
URL: http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=317bf4efb5e72a6a0154446915f5839ab01c40da
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Mon Oct 14 15:37:02 2013 +0100
console plugin: use a better-namespaced global variable
---
plugins/console/debug.c | 6 +++---
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 29dcf16..251549a 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 7803172..afe94c9 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
More information about the telepathy-commits
mailing list