aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/search.c')
-rw-r--r--src/plugins/fs/search.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c
index fbc62ec3..f733a66e 100644
--- a/src/plugins/fs/search.c
+++ b/src/plugins/fs/search.c
@@ -155,8 +155,9 @@ make_ranking_pixbuf (int availability_rank,
155 if (availability_rank < 0) 155 if (availability_rank < 0)
156 { 156 {
157 if ((x * GNUNET_FSUI_MAX_PROBES > 157 if ((x * GNUNET_FSUI_MAX_PROBES >
158 (GNUNET_FSUI_MAX_PROBES + 158 ((unsigned int) (GNUNET_FSUI_MAX_PROBES +
159 availability_rank) * P_WIDTH / 2) && (x <= P_WIDTH / 2)) 159 availability_rank)) * P_WIDTH / 2)
160 && (x <= P_WIDTH / 2))
160 { 161 {
161 pixel[PX_RED] = 255; 162 pixel[PX_RED] = 255;
162 pixel[PX_GREEN] = 0; 163 pixel[PX_GREEN] = 0;
@@ -168,7 +169,7 @@ make_ranking_pixbuf (int availability_rank,
168 { 169 {
169 if ((x >= P_WIDTH / 2) && 170 if ((x >= P_WIDTH / 2) &&
170 ((x - (P_WIDTH / 2)) * GNUNET_FSUI_MAX_PROBES < 171 ((x - (P_WIDTH / 2)) * GNUNET_FSUI_MAX_PROBES <
171 availability_rank * P_WIDTH / 2)) 172 ((unsigned int) availability_rank) * P_WIDTH / 2))
172 { 173 {
173 pixel[PX_RED] = 0; 174 pixel[PX_RED] = 0;
174 pixel[PX_GREEN] = 255; 175 pixel[PX_GREEN] = 255;
@@ -662,7 +663,7 @@ fs_search_started (struct GNUNET_FSUI_SearchList * fsui_list,
662 GtkTreePath *path; 663 GtkTreePath *path;
663 GtkTreeIter iter; 664 GtkTreeIter iter;
664 int col; 665 int col;
665 int i; 666 unsigned int i;
666 667
667 /* check that search does not already exist 668 /* check that search does not already exist
668 with fsui_list == NULL; 669 with fsui_list == NULL;