Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 807 → Rev 808

/polymer/eduke32/source/grpscan.c
52,7 → 52,7
if (scriptfile_getnumber(script, &fmtime)) break; // modification time
if (scriptfile_getnumber(script, &fcrcval)) break; // crc checksum
 
fg = calloc(1, sizeof(struct grpcache));
fg = Bcalloc(1, sizeof(struct grpcache));
fg->next = grpcache;
grpcache = fg;
 
110,7 → 110,7
free(fn);
if (fg->size == st.st_size && fg->mtime == st.st_mtime)
{
grp = (struct grpfile *)calloc(1, sizeof(struct grpfile));
grp = (struct grpfile *)Bcalloc(1, sizeof(struct grpfile));
grp->name = strdup(sidx->name);
grp->crcval = fg->crcval;
grp->size = fg->size;
117,7 → 117,7
grp->next = foundgrps;
foundgrps = grp;
 
fgg = (struct grpcache *)calloc(1, sizeof(struct grpcache));
fgg = (struct grpcache *)Bcalloc(1, sizeof(struct grpcache));
strcpy(fgg->name, fg->name);
fgg->size = fg->size;
fgg->mtime = fg->mtime;
149,7 → 149,7
close(fh);
initprintf(" Done\n");
 
grp = (struct grpfile *)calloc(1, sizeof(struct grpfile));
grp = (struct grpfile *)Bcalloc(1, sizeof(struct grpfile));
grp->name = strdup(sidx->name);
grp->crcval = crcval;
grp->size = st.st_size;
156,7 → 156,7
grp->next = foundgrps;
foundgrps = grp;
 
fgg = (struct grpcache *)calloc(1, sizeof(struct grpcache));
fgg = (struct grpcache *)Bcalloc(1, sizeof(struct grpcache));
strncpy(fgg->name, sidx->name, BMAX_PATH);
fgg->size = st.st_size;
fgg->mtime = st.st_mtime;