diff --git a/src/ssb.db.c b/src/ssb.db.c index 9dd8ee59..4fc52ba2 100644 --- a/src/ssb.db.c +++ b/src/ssb.db.c @@ -182,7 +182,8 @@ void tf_ssb_db_init(tf_ssb_t* ssb) tf_printf("Done.\n"); } - _tf_ssb_db_exec(db, "CREATE TRIGGER IF NOT EXISTS messages_ai AFTER INSERT ON messages BEGIN INSERT INTO messages_fts(rowid, content) VALUES (new.rowid, json(new.content)); END"); + _tf_ssb_db_exec( + db, "CREATE TRIGGER IF NOT EXISTS messages_ai AFTER INSERT ON messages BEGIN INSERT INTO messages_fts(rowid, content) VALUES (new.rowid, json(new.content)); END"); _tf_ssb_db_exec(db, "CREATE TRIGGER IF NOT EXISTS messages_ad AFTER DELETE ON messages BEGIN INSERT INTO messages_fts(messages_fts, rowid, content) VALUES ('delete', old.rowid, " "old.content); END"); diff --git a/src/ssb.import.c b/src/ssb.import.c index 19dd3be6..f6a9dd17 100644 --- a/src/ssb.import.c +++ b/src/ssb.import.c @@ -130,7 +130,7 @@ static void _tf_ssb_import_recursive_add_files(tf_ssb_t* ssb, uv_loop_t* loop, J { if (ent.type == UV_DIRENT_FILE #if defined(__HAIKU__) - || ent.type == UV_DIRENT_UNKNOWN + || ent.type == UV_DIRENT_UNKNOWN #endif ) {