diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-06 23:19:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-06 23:19:50 +0000 |
commit | fdcb5b6cef98a52f2c8842ce45cbd3a352f4391a (patch) | |
tree | 91031cc8c45415705a3f2f91e6b0c7f1fe769d25 /src/peerinfo/gnunet-peerinfo-gtk.c | |
parent | 70aad7030ca1f1262f067158334e0a7dc6a9aa51 (diff) | |
download | gnunet-gtk-fdcb5b6cef98a52f2c8842ce45cbd3a352f4391a.tar.gz gnunet-gtk-fdcb5b6cef98a52f2c8842ce45cbd3a352f4391a.zip |
-fixing cmp issue, handling default cases that should be dead, making compiler happier
Diffstat (limited to 'src/peerinfo/gnunet-peerinfo-gtk.c')
-rw-r--r-- | src/peerinfo/gnunet-peerinfo-gtk.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/peerinfo/gnunet-peerinfo-gtk.c b/src/peerinfo/gnunet-peerinfo-gtk.c index 68327133..4d0e1c81 100644 --- a/src/peerinfo/gnunet-peerinfo-gtk.c +++ b/src/peerinfo/gnunet-peerinfo-gtk.c | |||
@@ -1026,6 +1026,10 @@ transport_peer_cb (void *cts, | |||
1026 | case GNUNET_TRANSPORT_PS_DISCONNECT_FINISHED: | 1026 | case GNUNET_TRANSPORT_PS_DISCONNECT_FINISHED: |
1027 | led = NULL; | 1027 | led = NULL; |
1028 | break; | 1028 | break; |
1029 | default: | ||
1030 | GNUNET_break (0); | ||
1031 | led = NULL; | ||
1032 | break; | ||
1029 | } | 1033 | } |
1030 | info = get_peer_info (peer); | 1034 | info = get_peer_info (peer); |
1031 | info->state = state; | 1035 | info->state = state; |
@@ -1090,7 +1094,6 @@ transport_plugin_cb (void *cls, | |||
1090 | { | 1094 | { |
1091 | struct PeerInfo *info; | 1095 | struct PeerInfo *info; |
1092 | GtkTreeIter iter; | 1096 | GtkTreeIter iter; |
1093 | gboolean con; | ||
1094 | const char *tos; | 1097 | const char *tos; |
1095 | struct PeerAddress *pa; | 1098 | struct PeerAddress *pa; |
1096 | GdkPixbuf *led; | 1099 | GdkPixbuf *led; |
@@ -1123,6 +1126,10 @@ transport_plugin_cb (void *cls, | |||
1123 | case GNUNET_TRANSPORT_SS_DONE: | 1126 | case GNUNET_TRANSPORT_SS_DONE: |
1124 | led = NULL; | 1127 | led = NULL; |
1125 | break; | 1128 | break; |
1129 | default: | ||
1130 | GNUNET_break (0); | ||
1131 | led = NULL; | ||
1132 | break; | ||
1126 | } | 1133 | } |
1127 | if (NULL == sinfo->address) | 1134 | if (NULL == sinfo->address) |
1128 | { | 1135 | { |
@@ -1136,7 +1143,7 @@ transport_plugin_cb (void *cls, | |||
1136 | pa = get_address (info, sinfo->address); | 1143 | pa = get_address (info, sinfo->address); |
1137 | get_iter_from_rr (pa->rr, &iter); | 1144 | get_iter_from_rr (pa->rr, &iter); |
1138 | gtk_tree_store_set (ts, &iter, | 1145 | gtk_tree_store_set (ts, &iter, |
1139 | PEERINFO_MC_PLUGIN_CONNECTIVITY_STATUS, (led_green == tos), | 1146 | PEERINFO_MC_PLUGIN_CONNECTIVITY_STATUS, (led_green == led), |
1140 | PEERINFO_MC_PLUGIN_CONNECTIVITY_LED, led, | 1147 | PEERINFO_MC_PLUGIN_CONNECTIVITY_LED, led, |
1141 | PEERINFO_MC_PLUGIN_CONNECTIVITY_TIMEOUT_AS_STRING, tos, | 1148 | PEERINFO_MC_PLUGIN_CONNECTIVITY_TIMEOUT_AS_STRING, tos, |
1142 | -1); | 1149 | -1); |
@@ -1227,6 +1234,10 @@ validation_monitor_cb (void *cts, | |||
1227 | case GNUNET_TRANSPORT_VS_REMOVE: | 1234 | case GNUNET_TRANSPORT_VS_REMOVE: |
1228 | led = NULL; | 1235 | led = NULL; |
1229 | break; | 1236 | break; |
1237 | default: | ||
1238 | GNUNET_break (0); | ||
1239 | led = NULL; | ||
1240 | break; | ||
1230 | } | 1241 | } |
1231 | info = get_peer_info (peer); | 1242 | info = get_peer_info (peer); |
1232 | if (NULL == address) | 1243 | if (NULL == address) |
@@ -1334,6 +1345,11 @@ handle_core_monitor_event (void *cts, | |||
1334 | &reset_core_status, | 1345 | &reset_core_status, |
1335 | NULL); | 1346 | NULL); |
1336 | return; | 1347 | return; |
1348 | default: | ||
1349 | GNUNET_break (0); | ||
1350 | led = NULL; | ||
1351 | status = -1; | ||
1352 | break; | ||
1337 | } | 1353 | } |
1338 | info = get_peer_info (peer); | 1354 | info = get_peer_info (peer); |
1339 | get_iter_from_rr (info->rr, &iter); | 1355 | get_iter_from_rr (info->rr, &iter); |