aboutsummaryrefslogtreecommitdiff
path: root/snag/src/source_db.c
diff options
context:
space:
mode:
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);