summaryrefslogtreecommitdiff
path: root/apps/tagcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r--apps/tagcache.c6
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 }