aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/songvec.c6
-rw-r--r--src/songvec.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/songvec.c b/src/songvec.c
index 9c7b30845..5f5b43f08 100644
--- a/src/songvec.c
+++ b/src/songvec.c
@@ -142,7 +142,7 @@ songvec_find(const struct songvec *sv, const char *uri)
return ret;
}
-int
+void
songvec_delete(struct songvec *sv, const struct song *del)
{
size_t i;
@@ -161,11 +161,11 @@ songvec_delete(struct songvec *sv, const struct song *del)
sv->base = g_realloc(sv->base, sv_size(sv));
}
db_unlock();
- return i;
+ return;
}
db_unlock();
- return -1; /* not found */
+ assert(false);
}
void
diff --git a/src/songvec.h b/src/songvec.h
index 521a37700..e839b537b 100644
--- a/src/songvec.h
+++ b/src/songvec.h
@@ -36,7 +36,7 @@ void songvec_sort(struct songvec *sv);
struct song *
songvec_find(const struct songvec *sv, const char *uri);
-int
+void
songvec_delete(struct songvec *sv, const struct song *del);
void