mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 22:10:15 -05:00
Remove unused toplevel watch attribute
This commit is contained in:
6
src/db.c
6
src/db.c
@@ -206,7 +206,6 @@ static struct col_type_map wi_cols_map[] =
|
||||
{ wi_offsetof(wd), DB_TYPE_INT },
|
||||
{ wi_offsetof(cookie), DB_TYPE_INT },
|
||||
{ wi_offsetof(path), DB_TYPE_STRING },
|
||||
{ wi_offsetof(toplevel), DB_TYPE_INT },
|
||||
{ wi_offsetof(libidx), DB_TYPE_INT },
|
||||
};
|
||||
|
||||
@@ -2174,12 +2173,12 @@ db_watch_clear(void)
|
||||
int
|
||||
db_watch_add(struct watch_info *wi)
|
||||
{
|
||||
#define Q_TMPL "INSERT INTO inotify (wd, cookie, path, toplevel, libidx) VALUES (%d, 0, '%q', %d, %d);"
|
||||
#define Q_TMPL "INSERT INTO inotify (wd, cookie, path, libidx) VALUES (%d, 0, '%q', %d);"
|
||||
char *query;
|
||||
char *errmsg;
|
||||
int ret;
|
||||
|
||||
query = sqlite3_mprintf(Q_TMPL, wi->wd, wi->path, wi->toplevel, wi->libidx);
|
||||
query = sqlite3_mprintf(Q_TMPL, wi->wd, wi->path, wi->libidx);
|
||||
if (!query)
|
||||
{
|
||||
DPRINTF(E_LOG, L_DB, "Out of memory for query string\n");
|
||||
@@ -2741,7 +2740,6 @@ db_perthread_deinit(void)
|
||||
" wd INTEGER PRIMARY KEY NOT NULL," \
|
||||
" cookie INTEGER NOT NULL," \
|
||||
" path VARCHAR(4096) NOT NULL," \
|
||||
" toplevel INTEGER NOT NULL," \
|
||||
" libidx INTEGER NOT NULL" \
|
||||
");"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user