aboutsummaryrefslogtreecommitdiff
path: root/snag/src/source_db.c
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2026-07-25 10:59:24 -0400
committerJack Jamison <jackqjamison@gmail.com>2026-07-25 10:59:24 -0400
commit507d1d7d7a9487f76c72217832d115f3c429c7be (patch)
tree85a75632807e1ddf037510da133cf3e792210406 /snag/src/source_db.c
parent17d0447a55b971f66e383e5f3b0c12213949dbc9 (diff)
create build directory
Diffstat (limited to 'snag/src/source_db.c')
-rw-r--r--snag/src/source_db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/snag/src/source_db.c b/snag/src/source_db.c
index 86bab8b..d49e0c4 100644
--- a/snag/src/source_db.c
+++ b/snag/src/source_db.c
@@ -22,7 +22,7 @@ void ensure_libcurl();
// note: fixed location of source database for now
const char source_db_path[] = "./var/snag/sources";
-char* get_source_path(source_info_t* source) { return join_path(source_db_path, source->name); }
+char* get_source_path(const source_info_t* source) { return join_path(source_db_path, source->name); }
bool verify_source(source_info_t* source) {
// verify source exists
@@ -103,7 +103,7 @@ static size_t download_write_callback(char* ptr, size_t size, size_t nmemb, void
return written;
}
-bool unpack_source(source_info_t* source, char* dest_path) {
+bool unpack_source(const source_info_t* source, char* dest_path) {
char* source_path = get_source_path(source);
char* command = vastrcat(EXTRACT_TAR_SCRIPT, " ", source_path, " ", dest_path);