aboutsummaryrefslogtreecommitdiffstats
path: root/grvscored.c
diff options
context:
space:
mode:
Diffstat (limited to 'grvscored.c')
-rw-r--r--grvscored.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/grvscored.c b/grvscored.c
index 7e60df4..01ce8f7 100644
--- a/grvscored.c
+++ b/grvscored.c
@@ -27,10 +27,10 @@ int score_send(const char *file)
flock(fileno(f), LOCK_SH);
alarm(120); /* Make sure we have a sane timeout */
- highscore_parse(f, fgets, 0);
+ highscore_parse(f, 0);
fclose(f);
- return highscore_write(stdout, fputs, 0) ? 1 : 0;
+ return highscore_write(stdout, 0) ? 1 : 0;
}
int score_recv(const char *file)
@@ -49,9 +49,9 @@ int score_recv(const char *file)
flock(fileno(f), LOCK_EX);
alarm(120); /* Make sure we have a sane timeout */
- highscore_parse(f, fgets, 0);
- highscore_parse(stdin, fgets, 0);
- if ( highscore_write(t, fputs, 0) ) {
+ highscore_parse(f, 0);
+ highscore_parse(stdin, 0);
+ if ( highscore_write(t, 0) ) {
unlink(tp);
fclose(f);
return 1;