summaryrefslogtreecommitdiff
path: root/src/gmcerts.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-23 14:30:12 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-23 14:30:12 +0300
commit3b31ab31eb52578693acee07fdcf84fbeff72707 (patch)
tree954933c8f2db93aebe855a9a2d3baed3ae48a8a8 /src/gmcerts.c
parent863adf9118ae98a42bbbbd556087a437aba62329 (diff)
Cleanup: Use ".binary" for binary files
Diffstat (limited to 'src/gmcerts.c')
-rw-r--r--src/gmcerts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gmcerts.c b/src/gmcerts.c
index 58ddfd0c..cc7e9702 100644
--- a/src/gmcerts.c
+++ b/src/gmcerts.c
@@ -35,7 +35,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
35 35
36static const char *filename_GmCerts_ = "trusted.txt"; 36static const char *filename_GmCerts_ = "trusted.txt";
37static const char *identsDir_GmCerts_ = "idents"; 37static const char *identsDir_GmCerts_ = "idents";
38static const char *identsFilename_GmCerts_ = "idents.bin"; 38static const char *identsFilename_GmCerts_ = "idents.binary";
39 39
40iDeclareClass(TrustEntry) 40iDeclareClass(TrustEntry)
41 41
@@ -197,7 +197,6 @@ static void save_GmCerts_(const iGmCerts *d) {
197 deinit_String(&line); 197 deinit_String(&line);
198 } 198 }
199 iRelease(f); 199 iRelease(f);
200 saveIdentities_GmCerts_(d);
201 iEndCollect(); 200 iEndCollect();
202} 201}
203 202
@@ -317,6 +316,7 @@ void init_GmCerts(iGmCerts *d, const char *saveDir) {
317 316
318void deinit_GmCerts(iGmCerts *d) { 317void deinit_GmCerts(iGmCerts *d) {
319 iGuardMutex(&d->mtx, { 318 iGuardMutex(&d->mtx, {
319 saveIdentities_GmCerts_(d);
320 iForEach(PtrArray, i, &d->idents) { 320 iForEach(PtrArray, i, &d->idents) {
321 delete_GmIdentity(i.ptr); 321 delete_GmIdentity(i.ptr);
322 } 322 }