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.
This commit is contained in:
Sascha Kruse 2011-09-17 15:40:18 +02:00
parent f54975ba13
commit 6cec7aa72d

View File

@ -236,7 +236,7 @@ delete_msg(msg_queue_t *elem) {
void void
drawmsg(void) { drawmsg(void) {
int width, x, y, height, i; int width, x, y, height, i;
int len = list_len(msgqueue); unsigned int len = list_len(msgqueue);
msg_queue_t *cur_msg = msgqueue; msg_queue_t *cur_msg = msgqueue;
dc->x = 0; dc->x = 0;
dc->y = 0; dc->y = 0;