summaryrefslogtreecommitdiff
path: root/src/visited.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-01-18 20:53:13 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-01-18 20:53:13 +0200
commit538aa4e5f226551d6a529b6d4e85c0cef4d862f7 (patch)
tree458de015c2ea13fee38aad0efa01f1135d0bb22e /src/visited.c
parentd828264ebb1f021a7e4bb3abbb5719dc637c2fa3 (diff)
Better versioned file name for visited URLs
Diffstat (limited to 'src/visited.c')
-rw-r--r--src/visited.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/visited.c b/src/visited.c
index 6fcc23f7..f4769e97 100644
--- a/src/visited.c
+++ b/src/visited.c
@@ -74,7 +74,7 @@ void deinit_Visited(iVisited *d) {
74 74
75void save_Visited(const iVisited *d, const char *dirPath) { 75void save_Visited(const iVisited *d, const char *dirPath) {
76 iString *line = new_String(); 76 iString *line = new_String();
77 iFile *f = newCStr_File(concatPath_CStr(dirPath, "visited2.txt")); 77 iFile *f = newCStr_File(concatPath_CStr(dirPath, "visited.2.txt"));
78 if (open_File(f, writeOnly_FileMode | text_FileMode)) { 78 if (open_File(f, writeOnly_FileMode | text_FileMode)) {
79 lock_Mutex(d->mtx); 79 lock_Mutex(d->mtx);
80 iConstForEach(Array, i, &d->visited.values) { 80 iConstForEach(Array, i, &d->visited.values) {
@@ -93,7 +93,7 @@ void save_Visited(const iVisited *d, const char *dirPath) {
93} 93}
94 94
95void load_Visited(iVisited *d, const char *dirPath) { 95void load_Visited(iVisited *d, const char *dirPath) {
96 iFile *f = newCStr_File(concatPath_CStr(dirPath, "visited2.txt")); 96 iFile *f = newCStr_File(concatPath_CStr(dirPath, "visited.2.txt"));
97 if (open_File(f, readOnly_FileMode | text_FileMode)) { 97 if (open_File(f, readOnly_FileMode | text_FileMode)) {
98 lock_Mutex(d->mtx); 98 lock_Mutex(d->mtx);
99 const iRangecc src = range_Block(collect_Block(readAll_File(f))); 99 const iRangecc src = range_Block(collect_Block(readAll_File(f)));