svn path=/trunk/boinc_samples/; revision=13615

This commit is contained in:
David Anderson 2007-09-20 20:34:24 +00:00
parent 2d3be1dd51
commit badf3f77ff
1 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ HANDLE win_fopen(const char* path, const char* mode) {
0, 0 0, 0
); );
} else if (!strcmp(mode, "a")) { } else if (!strcmp(mode, "a")) {
HANDLE happend = CreateFile( HANDLE hAppend = CreateFile(
path, path,
GENERIC_WRITE, GENERIC_WRITE,
FILE_SHARE_WRITE, FILE_SHARE_WRITE,
@ -459,7 +459,7 @@ int main(int argc, char** argv) {
parse_state_file(); parse_state_file();
read_checkpoint(ntasks, cpu); read_checkpoint(ntasks, cpu);
if (ntasks > tasks.size()) { if (ntasks > (int)tasks.size()) {
fprintf(stderr, "Checkpoint file: ntasks %d too large\n", ntasks); fprintf(stderr, "Checkpoint file: ntasks %d too large\n", ntasks);
boinc_finish(1); boinc_finish(1);
} }