From 9c0b5859e6cc4b7a0e925fde8665990281b265d3 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 29 Jan 2009 17:58:28 +0100 Subject: Fix mostly every warning caused by -Wsign-compare --- compat/msdun.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compat/msdun.c') diff --git a/compat/msdun.c b/compat/msdun.c index fab4c586..1759ef66 100644 --- a/compat/msdun.c +++ b/compat/msdun.c @@ -56,7 +56,8 @@ static void sig_alarm(int sig) static int w4_str(int fd, char *str) { char buf[40]; - int r, len = 0; + unsigned len = 0; + int r; while (1) { r = read(fd, buf + len, sizeof(buf) - len - 1); -- cgit