diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-05-06 21:04:40 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-05-06 21:04:40 +0000 |
commit | 50a6ca39ad4ed01922aa4f755f0ca579788226cf (patch) | |
tree | c7881b015b220558167310345b162324c96be15a /apps/tagcache.c | |
parent | adb506df14aded06ed6e9ebf8540e6fd383ffd6a (diff) | |
download | rockbox-50a6ca39ad4ed01922aa4f755f0ca579788226cf.tar.gz rockbox-50a6ca39ad4ed01922aa4f755f0ca579788226cf.zip |
Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes).
This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r-- | apps/tagcache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index ab76fbadfe..29c00ae311 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -66,7 +66,7 @@ | |||
66 | #include "kernel.h" | 66 | #include "kernel.h" |
67 | #include "system.h" | 67 | #include "system.h" |
68 | #include "logf.h" | 68 | #include "logf.h" |
69 | #include "string.h" | 69 | #include "string-extra.h" |
70 | #include "usb.h" | 70 | #include "usb.h" |
71 | #include "metadata.h" | 71 | #include "metadata.h" |
72 | #include "tagcache.h" | 72 | #include "tagcache.h" |
@@ -1392,7 +1392,7 @@ static bool get_next(struct tagcache_search *tcs) | |||
1392 | 1392 | ||
1393 | if (TAGCACHE_IS_NUMERIC(tcs->type)) | 1393 | if (TAGCACHE_IS_NUMERIC(tcs->type)) |
1394 | { | 1394 | { |
1395 | snprintf(buf, sizeof(buf), "%d", tcs->position); | 1395 | snprintf(buf, sizeof(buf), "%ld", tcs->position); |
1396 | tcs->result = buf; | 1396 | tcs->result = buf; |
1397 | tcs->result_len = strlen(buf) + 1; | 1397 | tcs->result_len = strlen(buf) + 1; |
1398 | return true; | 1398 | return true; |
@@ -3490,7 +3490,7 @@ bool tagcache_create_changelog(struct tagcache_search *tcs) | |||
3490 | { | 3490 | { |
3491 | if (TAGCACHE_IS_NUMERIC(j)) | 3491 | if (TAGCACHE_IS_NUMERIC(j)) |
3492 | { | 3492 | { |
3493 | snprintf(temp, sizeof temp, "%d", idx.tag_seek[j]); | 3493 | snprintf(temp, sizeof temp, "%d", (int)idx.tag_seek[j]); |
3494 | write_tag(clfd, tagcache_tag_to_str(j), temp); | 3494 | write_tag(clfd, tagcache_tag_to_str(j), temp); |
3495 | continue; | 3495 | continue; |
3496 | } | 3496 | } |