From 6cec7aa72d75cbb64df07a7e5053217e709ed0b6 Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Sat, 17 Sep 2011 15:40:18 +0200 Subject: [PATCH] fixed warning when compiled with -Wextra changed len (length of message in drawmsg) to unsigned int, since a length can't be negative and the variable will be compared to another unsigned int. --- dunst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dunst.c b/dunst.c index de93a19..27ae691 100644 --- a/dunst.c +++ b/dunst.c @@ -236,7 +236,7 @@ delete_msg(msg_queue_t *elem) { void drawmsg(void) { int width, x, y, height, i; - int len = list_len(msgqueue); + unsigned int len = list_len(msgqueue); msg_queue_t *cur_msg = msgqueue; dc->x = 0; dc->y = 0;