summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Alfarano <cosimo.alfarano@collabora.co.uk>2010-02-23 14:56:27 +0000
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2010-02-25 11:28:48 +1100
commitdb094e346bdc4ddc2f2bb782586ae7e263ff2d74 (patch)
tree6f41b287e908ea5657bf7eecebb4273eb9bcc0f0
parent7aaf7c0092c18e902fb841a759af109f74e90b30 (diff)
downloadtelepathy-logger-db094e346bdc4ddc2f2bb782586ae7e263ff2d74.tar.gz
Fix PATH_DEBUG, prefixing '_' to blocl's vars to avoid shadowing vars in upper scopes
-rw-r--r--telepathy-logger/debug.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/telepathy-logger/debug.h b/telepathy-logger/debug.h
index cf189ca..1766b2c 100644
--- a/telepathy-logger/debug.h
+++ b/telepathy-logger/debug.h
@@ -62,13 +62,13 @@ G_END_DECLS
#define DEBUGGING gabble_debug_flag_is_set (DEBUG_FLAG)
/* The same of DEBUG, printing also the object-path property for the TpProxy
- * passed as first arg */
-#define PATH_DEBUG(proxy, format, ...) \
+ * passed as first arg. prepending '_' not not shadow any local variable */
+#define PATH_DEBUG(_proxy, _format, ...) \
G_STMT_START { \
- const gchar *path; \
- g_assert (TP_IS_PROXY (proxy)); \
- path = tp_proxy_get_object_path (TP_PROXY (proxy)); \
- DEBUG (" %s: " format, path, ##__VA_ARGS__); \
+ const gchar *_path; \
+ g_assert (TP_IS_PROXY (_proxy)); \
+ _path = tp_proxy_get_object_path (TP_PROXY (_proxy)); \
+ DEBUG (" %s: " _format, _path, ##__VA_ARGS__); \
} G_STMT_END
#endif /* DEBUG_FLAG */