fix: minor code refactor

This commit is contained in:
Tobias Reisinger 2020-08-13 11:26:06 +02:00
parent 505faa6df2
commit f167f9caec
22 changed files with 83 additions and 30 deletions

17
src/cache.c Normal file
View file

@ -0,0 +1,17 @@
#include <cache.h>
#include <logger.h>
sqlite3 *cache_database;
void
cache_init()
{
int rc = sqlite3_open(":memory:", &cache_database);
if(rc)
{
LOGGER_CRIT("can't open cache database: %s\n", sqlite3_errmsg(cache_database));
return;
}
}