summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pdbox
diff options
context:
space:
mode:
authorWincent Balin <wincent@rockbox.org>2009-08-05 15:36:08 +0000
committerWincent Balin <wincent@rockbox.org>2009-08-05 15:36:08 +0000
commit7964b69635b27ffb9c6db6df8bc6e3a542d73de8 (patch)
tree5cbf10a58549c172eaf702886167147218b47134 /apps/plugins/pdbox
parent764b12fc1d8c6ab34404076ae16b770b4441e767 (diff)
downloadrockbox-7964b69635b27ffb9c6db6df8bc6e3a542d73de8.tar.gz
rockbox-7964b69635b27ffb9c6db6df8bc6e3a542d73de8.tar.bz2
rockbox-7964b69635b27ffb9c6db6df8bc6e3a542d73de8.zip
PDBox: Correcting two more warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22174 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox')
-rw-r--r--apps/plugins/pdbox/PDa/src/g_graph.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/pdbox/PDa/src/g_graph.c b/apps/plugins/pdbox/PDa/src/g_graph.c
index cf216cf0c7..f4c471b2f9 100644
--- a/apps/plugins/pdbox/PDa/src/g_graph.c
+++ b/apps/plugins/pdbox/PDa/src/g_graph.c
@@ -90,7 +90,8 @@ void glist_delete(t_glist *x, t_gobj *y)
{
char tag[80];
#ifdef ROCKBOX
- snprintf(tag, sizeof(tag), "graph%x", (int) gl);
+ snprintf(tag, sizeof(tag), "graph%lx",
+ (unsigned long) (intptr_t) gl);
#else /* ROCKBOX */
sprintf(tag, "graph%x", (int)gl);
#endif /* ROCKBOX */
@@ -689,7 +690,7 @@ static void graph_vis(t_gobj *gr, t_glist *parent_glist, int vis)
rtext_erase(glist_findrtext(parent_glist, &x->gl_obj));
#ifdef ROCKBOX
- snprintf(tag, sizeof(tag), "graph%x", (int) x);
+ snprintf(tag, sizeof(tag), "graph%lx", (unsigned long) (intptr_t) x);
#else
sprintf(tag, "graph%x", (int)x);
#endif