Changed types and added casts so that build is clean with gcc -Wsign-compare.
[mmh] / uip / dropsbr.c
index 124e5ab..3c3e105 100644 (file)
@@ -169,7 +169,7 @@ mbox_copy(int to, int from)
                if (i != 0 && strncmp(buffer, "From ", 5) == 0) {
                        write(to, ">", 1);
                }
-               if (write(to, buffer, strlen(buffer)) != strlen(buffer)) {
+               if (write(to, buffer, strlen(buffer)) != (int)strlen(buffer)) {
                        fclose(fp);
                        return NOTOK;
                }