aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.c
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-06-27 15:36:23 -0400
committerAdam Harrison <adamdharrison@gmail.com>2023-06-27 15:36:23 -0400
commit68bffd2b3bac0e2cecd62ee016cede743c721af4 (patch)
tree726e3f04e149f944246017a906461f2e1f9c066c /src/lpm.c
parentfd0e1eb0c778650f7e8e54312da7e37fa33ed642 (diff)
downloadlite-xl-plugin-manager-68bffd2b3bac0e2cecd62ee016cede743c721af4.tar.gz
lite-xl-plugin-manager-68bffd2b3bac0e2cecd62ee016cede743c721af4.zip
Fixed warning and error.v1.0.6
Diffstat (limited to 'src/lpm.c')
-rw-r--r--src/lpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 448b5e4..24ef1c4 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -434,7 +434,7 @@ static int lpm_fetch(lua_State* L) {
fetch_opts.callbacks.certificate_check = lpm_git_transport_certificate_check_cb;
if (lua_type(L, 2) == LUA_TFUNCTION)
fetch_opts.callbacks.transfer_progress = lpm_git_transfer_progress_cb;
- git_strarray array = { &refspec, 1 };
+ git_strarray array = { (char**)&refspec, 1 };
if (git_remote_fetch(remote, refspec ? &array : NULL, &fetch_opts, NULL)) {
git_remote_free(remote);
git_repository_free(repository);