aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-06 14:48:47 +0000
committerChristian Grothoff <christian@grothoff.org>2016-05-06 14:48:47 +0000
commit21d480b50ae7b2f9bfb86def5972bb5721ab4acf (patch)
treebf87cdfe17a632b13ddcfab76dff8ec44fd5990d
parent407940eab281ad623c1d5263d8aaf2d4032fa27d (diff)
downloadgnunet-gtk-21d480b50ae7b2f9bfb86def5972bb5721ab4acf.tar.gz
gnunet-gtk-21d480b50ae7b2f9bfb86def5972bb5721ab4acf.zip
fixing compiler warnings
-rw-r--r--src/conversation/gnunet-conversation-gtk.c8
-rw-r--r--src/fs/gnunet-fs-gtk_event-handler.c21
-rw-r--r--src/namestore/gnunet-namestore-gtk.c10
-rw-r--r--src/peerinfo/gnunet-peerinfo-gtk.c10
-rw-r--r--src/statistics/gnunet-statistics-gtk.c2
5 files changed, 29 insertions, 22 deletions
diff --git a/src/conversation/gnunet-conversation-gtk.c b/src/conversation/gnunet-conversation-gtk.c
index c091f7fb..aca58d30 100644
--- a/src/conversation/gnunet-conversation-gtk.c
+++ b/src/conversation/gnunet-conversation-gtk.c
@@ -119,11 +119,9 @@ GCG_get_configuration ()
119 * Task run on shutdown. 119 * Task run on shutdown.
120 * 120 *
121 * @param cls unused 121 * @param cls unused
122 * @param tc scheduler context, unused
123 */ 122 */
124static void 123static void
125shutdown_task (void *cls, 124shutdown_task (void *cls)
126 const struct GNUNET_SCHEDULER_TaskContext *tc)
127{ 125{
128 GCG_EGOS_shutdown (); 126 GCG_EGOS_shutdown ();
129 GCG_ZONES_shutdown (); 127 GCG_ZONES_shutdown ();
@@ -155,11 +153,9 @@ gnunet_conversation_gtk_quit_cb (GObject *object,
155 * is initialized. Initializes up GTK and Glade. 153 * is initialized. Initializes up GTK and Glade.
156 * 154 *
157 * @param cls NULL 155 * @param cls NULL
158 * @param tc schedule context
159 */ 156 */
160static void 157static void
161run (void *cls, 158run (void *cls)
162 const struct GNUNET_SCHEDULER_TaskContext *tc)
163{ 159{
164 GtkWidget *main_window; 160 GtkWidget *main_window;
165 161
diff --git a/src/fs/gnunet-fs-gtk_event-handler.c b/src/fs/gnunet-fs-gtk_event-handler.c
index 098e1931..8660ba90 100644
--- a/src/fs/gnunet-fs-gtk_event-handler.c
+++ b/src/fs/gnunet-fs-gtk_event-handler.c
@@ -2945,7 +2945,12 @@ mark_download_progress (struct DownloadEntry *de,
2945 2945
2946 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 2946 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2947 "Marking download progress for DE=%p, %llu/%llu, %llu@%llu depth=%u\n", 2947 "Marking download progress for DE=%p, %llu/%llu, %llu@%llu depth=%u\n",
2948 de, completed, size, block_size, offset, depth); 2948 de,
2949 (unsigned long long) completed,
2950 (unsigned long long) size,
2951 (unsigned long long) block_size,
2952 (unsigned long long) offset,
2953 depth);
2949 2954
2950 if (NULL != de->sr->tab) 2955 if (NULL != de->sr->tab)
2951 { 2956 {
@@ -3119,8 +3124,10 @@ setup_download (struct DownloadEntry *de,
3119 struct SearchResult *sr, 3124 struct SearchResult *sr,
3120 uint32_t anonymity, 3125 uint32_t anonymity,
3121 struct GNUNET_FS_DownloadContext *dc, 3126 struct GNUNET_FS_DownloadContext *dc,
3122 const struct GNUNET_FS_Uri *uri, const char *filename, 3127 const struct GNUNET_FS_Uri *uri,
3123 const struct GNUNET_CONTAINER_MetaData *meta, uint64_t size, 3128 const char *filename,
3129 const struct GNUNET_CONTAINER_MetaData *meta,
3130 uint64_t size,
3124 uint64_t completed) 3131 uint64_t completed)
3125{ 3132{
3126 GtkTreeIter iter; 3133 GtkTreeIter iter;
@@ -3129,7 +3136,13 @@ setup_download (struct DownloadEntry *de,
3129 3136
3130 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 3137 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
3131 "Setting up download, initially DE=%p, PDE=%p for %p & %p into %llu/%llu `%s'\n", 3138 "Setting up download, initially DE=%p, PDE=%p for %p & %p into %llu/%llu `%s'\n",
3132 de, pde, sr, dc, completed, size, filename); 3139 de,
3140 pde,
3141 sr,
3142 dc,
3143 (unsigned long long) completed,
3144 (unsigned long long) size,
3145 filename);
3133 GNUNET_assert (NULL != uri); 3146 GNUNET_assert (NULL != uri);
3134 if (NULL == de) 3147 if (NULL == de)
3135 { 3148 {
diff --git a/src/namestore/gnunet-namestore-gtk.c b/src/namestore/gnunet-namestore-gtk.c
index 750e1810..2258b5bc 100644
--- a/src/namestore/gnunet-namestore-gtk.c
+++ b/src/namestore/gnunet-namestore-gtk.c
@@ -2123,7 +2123,7 @@ gnunet_namestore_gtk_pseu_entry_changed_cb (GtkEditable *editable,
2123 return; 2123 return;
2124 } 2124 }
2125 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 2125 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2126 "New Pseudonym is `%s' %u\n", 2126 "New Pseudonym is `%s'\n",
2127 pseu); 2127 pseu);
2128 GNUNET_free_non_null (current_pseudonym); 2128 GNUNET_free_non_null (current_pseudonym);
2129 if ( (NULL != pseu) && 2129 if ( (NULL != pseu) &&
@@ -2370,9 +2370,11 @@ zone_iteration_proc (void *cls,
2370 continue; 2370 continue;
2371 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 2371 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2372 "Record %u: type %u flags %u expiration %llu data_size %u\n", 2372 "Record %u: type %u flags %u expiration %llu data_size %u\n",
2373 c, rd[c].record_type, rd[c].flags, 2373 c,
2374 rd[c].expiration_time, 2374 rd[c].record_type,
2375 rd[c].data_size); 2375 rd[c].flags,
2376 (unsigned long long) rd[c].expiration_time,
2377 (unsigned int) rd[c].data_size);
2376 2378
2377 /* Set public toggle */ 2379 /* Set public toggle */
2378 is_public = ((rd[c].flags & GNUNET_GNSRECORD_RF_PRIVATE) != GNUNET_GNSRECORD_RF_PRIVATE); 2380 is_public = ((rd[c].flags & GNUNET_GNSRECORD_RF_PRIVATE) != GNUNET_GNSRECORD_RF_PRIVATE);
diff --git a/src/peerinfo/gnunet-peerinfo-gtk.c b/src/peerinfo/gnunet-peerinfo-gtk.c
index f5a3f6f2..5733ae09 100644
--- a/src/peerinfo/gnunet-peerinfo-gtk.c
+++ b/src/peerinfo/gnunet-peerinfo-gtk.c
@@ -499,11 +499,9 @@ free_paths (void *cts,
499 * Task run on shutdown. 499 * Task run on shutdown.
500 * 500 *
501 * @param cts unused 501 * @param cts unused
502 * @param tc scheduler context, unused
503 */ 502 */
504static void 503static void
505shutdown_task (void *cts, 504shutdown_task (void *cts)
506 const struct GNUNET_SCHEDULER_TaskContext *tc)
507{ 505{
508 GNUNET_GTK_tray_icon_destroy (); 506 GNUNET_GTK_tray_icon_destroy ();
509 GNUNET_GTK_main_loop_quit (ml); 507 GNUNET_GTK_main_loop_quit (ml);
@@ -1570,12 +1568,10 @@ query_tooltip_cb (GtkWidget *widget,
1570 * Actual main function run right after GNUnet's scheduler 1568 * Actual main function run right after GNUnet's scheduler
1571 * is initialized. Initializes up GTK and Glade. 1569 * is initialized. Initializes up GTK and Glade.
1572 * 1570 *
1573 * @param cts NULL 1571 * @param cts the main loop context
1574 * @param tc schedule context
1575 */ 1572 */
1576static void 1573static void
1577run (void *cts, 1574run (void *cts)
1578 const struct GNUNET_SCHEDULER_TaskContext *tc)
1579{ 1575{
1580 GtkWidget *main_window; 1576 GtkWidget *main_window;
1581 GtkTreeView *tv; 1577 GtkTreeView *tv;
diff --git a/src/statistics/gnunet-statistics-gtk.c b/src/statistics/gnunet-statistics-gtk.c
index 0eef7e44..8ef66ac6 100644
--- a/src/statistics/gnunet-statistics-gtk.c
+++ b/src/statistics/gnunet-statistics-gtk.c
@@ -234,7 +234,7 @@ GNUNET_STATISTICS_GTK_quit_cb (GObject * object, gpointer user_data)
234 * is initialized. Initializes up GTK and Glade. 234 * is initialized. Initializes up GTK and Glade.
235 */ 235 */
236static void 236static void
237run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 237run (void *cls)
238{ 238{
239 GtkWidget *main_window; 239 GtkWidget *main_window;
240 240