[Pkg-telepathy-commits] [telepathy-mission-control-6] 206/280: McdStorage: delete_cb: improve clarity with a temporary variable
Simon McVittie
smcv at debian.org
Thu Mar 27 20:07:24 UTC 2014
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian
in repository telepathy-mission-control-6.
commit 2333321be2b6550a462d9cf92a1700d77d682734
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Fri Nov 15 13:21:45 2013 +0000
McdStorage: delete_cb: improve clarity with a temporary variable
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=27727
---
src/mcd-storage.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/mcd-storage.c b/src/mcd-storage.c
index 11dab99..0f96557 100644
--- a/src/mcd-storage.c
+++ b/src/mcd-storage.c
@@ -1770,16 +1770,17 @@ delete_cb (GObject *source,
gpointer user_data)
{
GError *error = NULL;
+ const gchar *account_name = user_data;
if (mcp_account_storage_delete_finish (MCP_ACCOUNT_STORAGE (source),
res, &error))
{
- DEBUG ("deleted account %s", (const gchar *) user_data);
+ DEBUG ("deleted account %s", account_name);
}
else
{
DEBUG ("could not delete account %s (but no way to signal that): "
- "%s #%d: %s", (const gchar *) user_data,
+ "%s #%d: %s", account_name,
g_quark_to_string (error->domain), error->code, error->message);
g_error_free (error);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/telepathy-mission-control-6.git
More information about the Pkg-telepathy-commits
mailing list