From 4ab5e9b6140f74d29c12887d681b3ed3ac79b518 Mon Sep 17 00:00:00 2001 From: anon Date: Thu, 3 Aug 2023 12:41:21 +0200 Subject: [PATCH] remove unused return value --- src/api.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/api.c b/src/api.c index 4421fd7..3e3ed83 100644 --- a/src/api.c +++ b/src/api.c @@ -80,14 +80,12 @@ remind(char * who) return r; } -DECL char * -set_repo(char* who, char* link) +DECL void +set_repo(const char * const who, const char * const link) { - char * r; DBERR(sqlite3_bind_text(set_repo_stmt, 1, link, -1, SQLITE_STATIC)); DBERR(sqlite3_bind_text(set_repo_stmt, 2, who, -1, SQLITE_STATIC)); DBERR(sqlite3_step(set_repo_stmt)); - return r; } DECL int