From 507d1d7d7a9487f76c72217832d115f3c429c7be Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Sat, 25 Jul 2026 10:59:24 -0400 Subject: create build directory --- snag/src/source_db.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'snag/src/source_db.c') 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); -- cgit v1.2.3