summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_download.c
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-25 20:42:53 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-25 20:42:53 (EST)
commitd2fc8c73ad1cff0e8b57330caa3c997a17059f2b (patch)
treeda202a65f58455cbb2a2a9c484627502c5a61d9b /libopkg/opkg_download.c
parent9ba412631e57deb365d5e7fb8b8c2fbf9bfe27b0 (diff)
Remove str_util.{c,h}
git-svn-id: http://opkg.googlecode.com/svn/trunk@383 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/opkg_download.c')
-rw-r--r--libopkg/opkg_download.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c
index 4789249..49a48a0 100644
--- a/libopkg/opkg_download.c
+++ b/libopkg/opkg_download.c
@@ -46,7 +46,6 @@
#include "sprintf_alloc.h"
#include "xsystem.h"
#include "file_util.h"
-#include "str_util.h"
#include "opkg_defines.h"
#include "libbb/libbb.h"
@@ -71,6 +70,12 @@ static CURL *curl = NULL;
static CURL *opkg_curl_init(opkg_conf_t *conf, curl_progress_func cb, void *data);
#endif
+static int
+str_starts_with(const char *str, const char *prefix)
+{
+ return (strncmp(str, prefix, strlen(prefix)) == 0);
+}
+
int opkg_download(opkg_conf_t *conf, const char *src,
const char *dest_file_name, curl_progress_func cb, void *data)
{