Skip to content
Snippets Groups Projects
Commit 37f54ee5 authored by rswindell's avatar rswindell
Browse files

delfiles() takes 3 args now, as reported by Alterego.

parent 14f8af7d
Branches
Tags
No related merge requests found
......@@ -227,10 +227,10 @@ int main(int argc, char **argv)
lastrun=time(NULL);
lastrun-=lastrun%86400;
write(file,&lastrun,sizeof(lastrun)); close(file);
delfiles(".","player.*");
delfiles(".","gamestat.*");
delfiles(".","deck.*");
delfiles(".","message.*");
delfiles(".","player.*", /* keep: */0);
delfiles(".","gamestat.*", /* keep: */0);
delfiles(".","deck.*", /* keep: */0);
delfiles(".","message.*", /* keep: */0);
unlink("dpoker.plr");
close(file);
}
......@@ -247,10 +247,10 @@ int main(int argc, char **argv)
lastrun=time(NULL); lseek(file,0L,SEEK_SET);
lastrun-=lastrun%86400;
write(file,&lastrun,sizeof(lastrun));
delfiles(".","player.*");
delfiles(".","gamestat.*");
delfiles(".","deck.*");
delfiles(".","message.*");
delfiles(".","player.*", /* keep: */0);
delfiles(".","gamestat.*", /* keep: */0);
delfiles(".","deck.*", /* keep: */0);
delfiles(".","message.*", /* keep: */0);
unlink("dpoker.plr");
}
close(file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment