X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fdropsbr.c;h=3c3e105264f2bdf50c7a72fa9b1a3d5e897395f6;hb=55eda7c77fdf33b0a7175968471df55e2600379c;hp=6a7eb78ff95f68d139435ca0fcc77412e45185d2;hpb=39d862d5f0ba0258707ef5a74cff63243f58e425;p=mmh diff --git a/uip/dropsbr.c b/uip/dropsbr.c index 6a7eb78..3c3e105 100644 --- a/uip/dropsbr.c +++ b/uip/dropsbr.c @@ -12,11 +12,7 @@ #include #include #include - -#ifdef HAVE_ERRNO_H -# include -#endif - +#include #include @@ -173,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; }