summaryrefslogtreecommitdiff
path: root/ratatox.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-13 15:33:15 +0100
committersin <sin@2f30.org>2014-09-13 15:33:15 +0100
commitd0f4dccc6ac8b81db75930ccb2a22f556b54fa33 (patch)
tree2c9503390a29399e2f79f88ef8f2ae83dfa598dd /ratatox.c
parent280e85b7d36f8d2674293edcf94445441fc275f1 (diff)
Rename data file to ratatox.data
Diffstat (limited to 'ratatox.c')
-rw-r--r--ratatox.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ratatox.c b/ratatox.c
index 7a6f532..52ab03e 100644
--- a/ratatox.c
+++ b/ratatox.c
@@ -284,7 +284,7 @@ dataload(void)
size_t sz;
uint8_t *data;
- fp = fopen("toxcli.data", "r");
+ fp = fopen("ratatox.data", "r");
if (!fp)
return;
@@ -299,7 +299,7 @@ dataload(void)
}
if (fread(data, 1, sz, fp) != sz) {
- fprintf(stderr, "failed to read toxcli.data\n");
+ fprintf(stderr, "failed to read ratatox.data\n");
exit(1);
}
tox_load(tox, data, sz);
@@ -315,9 +315,9 @@ datasave(void)
size_t sz;
uint8_t *data;
- fp = fopen("toxcli.data", "w");
+ fp = fopen("ratatox.data", "w");
if (!fp) {
- fprintf(stderr, "can't open toxcli.data for writing\n");
+ fprintf(stderr, "can't open ratatox.data for writing\n");
exit(1);
}
@@ -330,7 +330,7 @@ datasave(void)
tox_save(tox, data);
if (fwrite(data, 1, sz, fp) != sz) {
- fprintf(stderr, "failed to write toxcli.data\n");
+ fprintf(stderr, "failed to write ratatox.data\n");
exit(1);
}