X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fmd5.c;h=ec1337ca6eafd02af152163967f7aec95d12ba27;hb=b073ad3949bbab4cf51e6c5de4725bb150b3ad11;hp=6f5f1bfd15fcb997d1c82e2fb4f90576bfe9b82b;hpb=3e447015251ce6dcde843cbed10d9033d5538622;p=chise%2Fxemacs-chise.git.1 diff --git a/src/md5.c b/src/md5.c index 6f5f1bf..ec1337c 100644 --- a/src/md5.c +++ b/src/md5.c @@ -29,10 +29,7 @@ #include #include #include - -#if defined HAVE_LIMITS_H || _LIBC -# include -#endif +#include /* The following contortions are an attempt to use the C preprocessor to determine an unsigned integral type that is 32 bits wide. An @@ -582,9 +579,9 @@ file-coding or Mule support. Otherwise, they are ignored. while (1) { Bufbyte tempbuf[1024]; /* some random amount */ - ssize_t size_in_bytes = + Lstream_data_count size_in_bytes = Lstream_read (XLSTREAM (instream), tempbuf, sizeof (tempbuf)); - if (!size_in_bytes) + if (size_in_bytes <= 0) break; /* Process the bytes. */