aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 3283525..67c4559 100644
--- a/src/main.c
+++ b/src/main.c
@@ -85,8 +85,8 @@ void reload_dylib(const char *so_path, const char *db_path) {
if (!arg.dylib) LCRITVF(1, "Could not open dynamic library: %s\n", dlerror());
arg.query = dlsym(arg.dylib, "db_get_url");
if (!arg.query) LCRITVF(1, "Could not load `db_get_url` from shared library: %s", dlerror());
- arg.constructor = dlsym(arg.dylib, "sqlite_init");
- if (!arg.constructor) LCRITVF(1, "Could not load `sqlite_init` from shared library: %s", dlerror());
+ arg.constructor = dlsym(arg.dylib, "init");
+ if (!arg.constructor) LCRITVF(1, "Could not load `init` from shared library: %s", dlerror());
arg.constructor(db_path);
arg.destructor = dlsym(arg.dylib, "sqlite_deinit");
if (!arg.destructor) LCRITVF(1, "Could not load `sqlite_deinit` from shared library: %s", dlerror());