summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_download.c
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg/opkg_download.c')
-rw-r--r--libopkg/opkg_download.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c
index bbd6efe..6cce64a 100644
--- a/libopkg/opkg_download.c
+++ b/libopkg/opkg_download.c
@@ -213,7 +213,7 @@ int opkg_download_pkg(opkg_conf_t *conf, pkg_t *pkg, const char *dir)
}
sprintf_alloc (&pkgid, "%s;%s;%s;", pkg->name, pkg->version, pkg->architecture);
- opkg_set_current_state (OPKG_STATE_DOWNLOADING_PKG, pkgid);
+ opkg_set_current_state (conf, OPKG_STATE_DOWNLOADING_PKG, pkgid);
free (pkgid);
sprintf_alloc(&url, "%s/%s", pkg->src->value, pkg->filename);
@@ -227,7 +227,7 @@ int opkg_download_pkg(opkg_conf_t *conf, pkg_t *pkg, const char *dir)
err = opkg_download(conf, url, pkg->local_filename);
free(url);
- opkg_set_current_state (OPKG_STATE_NONE, NULL);
+ opkg_set_current_state (conf, OPKG_STATE_NONE, NULL);
return err;
}