summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-14 23:19:18 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-14 23:19:18 (EST)
commit19fbc4d6da1cc3f83c54a48815ad029d3d5d0f6f (patch)
tree59da4e512d338e3ac15cc108838fb2136ea84ceb
parent1f047463e6714515aa100d881cbd49d8114e8c6f (diff)
opkg: fix some compiler warnings
git-svn-id: http://opkg.googlecode.com/svn/trunk@15 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
-rw-r--r--opkg_download.c3
-rw-r--r--pkg.c4
-rw-r--r--pkg.h4
3 files changed, 5 insertions, 6 deletions
diff --git a/opkg_download.c b/opkg_download.c
index fcc5294..8195e51 100644
--- a/opkg_download.c
+++ b/opkg_download.c
@@ -79,7 +79,6 @@ int opkg_download(opkg_conf_t *conf, const char *src, const char *dest_file_name
char *src_basec = strdup(src);
char *src_base = basename(src_basec);
char *tmp_file_location;
- char *cmd;
opkg_message(conf,OPKG_NOTICE,"Downloading %s\n", src);
@@ -245,7 +244,7 @@ int opkg_prepare_url_for_install(opkg_conf_t *conf, const char *url, char **name
if (err)
return err;
pkg->local_filename = strdup(url);
- opkg_message(conf, OPKG_DEBUG2, "Package %s provided by hand \(%s\).\n", pkg->name,pkg->local_filename);
+ opkg_message(conf, OPKG_DEBUG2, "Package %s provided by hand (%s).\n", pkg->name,pkg->local_filename);
pkg->provided_by_hand = 1;
} else {
diff --git a/pkg.c b/pkg.c
index 80234ed..1202845 100644
--- a/pkg.c
+++ b/pkg.c
@@ -1529,7 +1529,7 @@ char *pkg_state_flag_to_str(pkg_state_flag_t sf)
}
}
-pkg_state_flag_t pkg_state_flag_from_str(char *str)
+pkg_state_flag_t pkg_state_flag_from_str(const char *str)
{
int i;
int sf = SF_OK;
@@ -1569,7 +1569,7 @@ char *pkg_state_status_to_str(pkg_state_status_t ss)
return strdup("<STATE_STATUS_UNKNOWN>");
}
-pkg_state_status_t pkg_state_status_from_str(char *str)
+pkg_state_status_t pkg_state_status_from_str(const char *str)
{
int i;
diff --git a/pkg.h b/pkg.h
index 1bb4a4c..665191b 100644
--- a/pkg.h
+++ b/pkg.h
@@ -216,9 +216,9 @@ int pkg_run_script(struct opkg_conf *conf, pkg_t *pkg,
char *pkg_state_want_to_str(pkg_state_want_t sw);
pkg_state_want_t pkg_state_want_from_str(char *str);
char *pkg_state_flag_to_str(pkg_state_flag_t sf);
-pkg_state_flag_t pkg_state_flag_from_str(char *str);
+pkg_state_flag_t pkg_state_flag_from_str(const char *str);
char *pkg_state_status_to_str(pkg_state_status_t ss);
-pkg_state_status_t pkg_state_status_from_str(char *str);
+pkg_state_status_t pkg_state_status_from_str(const char *str);
int pkg_version_satisfied(pkg_t *it, pkg_t *ref, const char *op);