mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-11 14:30:20 -05:00
Bring db_watch_delete_bywd() prototype back in line with other db_watch_delete_by*()
This commit is contained in:
4
src/db.c
4
src/db.c
@@ -2230,13 +2230,13 @@ db_watch_delete_byquery(char *query)
|
||||
}
|
||||
|
||||
int
|
||||
db_watch_delete_bywd(struct watch_info *wi)
|
||||
db_watch_delete_bywd(uint32_t wd)
|
||||
{
|
||||
#define Q_TMPL "DELETE FROM inotify WHERE wd = %d;"
|
||||
char *query;
|
||||
int ret;
|
||||
|
||||
query = sqlite3_mprintf(Q_TMPL, wi->wd);
|
||||
query = sqlite3_mprintf(Q_TMPL, wd);
|
||||
if (!query)
|
||||
{
|
||||
DPRINTF(E_LOG, L_DB, "Out of memory for query string\n");
|
||||
|
||||
Reference in New Issue
Block a user