summaryrefslogtreecommitdiff
path: root/src/trg-peers-model.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-02-04 12:17:21 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-02-04 12:17:21 +0000
commitf5fe60d8133ab3c7ca75fd80ed1c8d02d5e68e70 (patch)
treea342e89cc97bf08f9c40c3d23c98c557360ec5a3 /src/trg-peers-model.c
parent1d6a5969e35e312c598a7357830506c52d54c4b8 (diff)
big thanks to charles for the feedback and patches! fixes for building against older libnotify (issue 1+4), use AM_SILENT_RULES (6), compiler warning fixes (5), use GDK_Delete instead of GDK_KEY_Delete (3)
Diffstat (limited to 'src/trg-peers-model.c')
-rw-r--r--src/trg-peers-model.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/trg-peers-model.c b/src/trg-peers-model.c
index 2f0300d..8627422 100644
--- a/src/trg-peers-model.c
+++ b/src/trg-peers-model.c
@@ -38,14 +38,16 @@
G_DEFINE_TYPE(TrgPeersModel, trg_peers_model, GTK_TYPE_LIST_STORE)
-static void trg_peers_model_class_init(TrgPeersModelClass * klass)
+static void
+trg_peers_model_class_init(TrgPeersModelClass * klass G_GNUC_UNUSED)
{
}
gboolean
find_existing_peer_item_foreachfunc(GtkTreeModel * model,
- GtkTreePath * path, GtkTreeIter * iter,
- gpointer data)
+ GtkTreePath * path G_GNUC_UNUSED,
+ GtkTreeIter * iter,
+ gpointer data)
{
struct peerAndIter *pi;
gchar *ip;
@@ -114,7 +116,7 @@ void trg_peers_model_update(TrgPeersModel * model, gint64 updateSerial,
{
JsonArray *peers;
GtkTreeIter peerIter;
- int j;
+ guint j;
gboolean isNew;
peers = torrent_get_peers(t);
@@ -124,7 +126,7 @@ void trg_peers_model_update(TrgPeersModel * model, gint64 updateSerial,
for (j = 0; j < json_array_get_length(peers); j++) {
JsonObject *peer;
- const gchar *address, *flagStr;
+ const gchar *address=NULL, *flagStr;
#if HAVE_GEOIP
GeoIP *gi;
const gchar *country = NULL;