/[MITgcm]/MITgcm/tools/mpack-1.6/codes.c
ViewVC logotype

Diff of /MITgcm/tools/mpack-1.6/codes.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2 by jmc, Sat Feb 23 01:28:26 2008 UTC revision 1.3 by jmc, Sat Feb 23 03:30:03 2008 UTC
# Line 128  char *md5digest(FILE *infile, long int * Line 128  char *md5digest(FILE *infile, long int *
128      int nbytes;      int nbytes;
129            
130      MD5Init(&context);      MD5Init(&context);
131      while ((nbytes = fread(buf, 1, sizeof(buf), infile))) {      while (nbytes = fread(buf, 1, sizeof(buf), infile)) {
132          length += nbytes;          length += nbytes;
133          MD5Update(&context, buf, nbytes);          MD5Update(&context, buf, nbytes);
134      }      }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.22