r3933 - trunk/src/target/opkg
thomas at sita.openmoko.org
thomas at sita.openmoko.org
Wed Jan 23 11:49:20 CET 2008
Author: thomas
Date: 2008-01-23 11:49:18 +0100 (Wed, 23 Jan 2008)
New Revision: 3933
Modified:
trunk/src/target/opkg/opkg_download.c
trunk/src/target/opkg/pkg.c
trunk/src/target/opkg/pkg.h
Log:
opkg: fix some compiler warnings
Modified: trunk/src/target/opkg/opkg_download.c
===================================================================
--- trunk/src/target/opkg/opkg_download.c 2008-01-23 01:02:50 UTC (rev 3932)
+++ trunk/src/target/opkg/opkg_download.c 2008-01-23 10:49:18 UTC (rev 3933)
@@ -79,7 +79,6 @@
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 @@
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 {
Modified: trunk/src/target/opkg/pkg.c
===================================================================
--- trunk/src/target/opkg/pkg.c 2008-01-23 01:02:50 UTC (rev 3932)
+++ trunk/src/target/opkg/pkg.c 2008-01-23 10:49:18 UTC (rev 3933)
@@ -1529,7 +1529,7 @@
}
}
-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 @@
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;
Modified: trunk/src/target/opkg/pkg.h
===================================================================
--- trunk/src/target/opkg/pkg.h 2008-01-23 01:02:50 UTC (rev 3932)
+++ trunk/src/target/opkg/pkg.h 2008-01-23 10:49:18 UTC (rev 3933)
@@ -216,9 +216,9 @@
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);
More information about the commitlog
mailing list