dde_rump: fix int casting warnings

Fixes #1141.
This commit is contained in:
Josef Söntgen 2014-05-05 15:35:21 +02:00 committed by Christian Helmuth
parent 65bdddbbdf
commit 43cb97cd83
2 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ struct Sym_tab
if (sym->st_shndx == SHN_UNDEF || !sym->st_value)
continue;
char const *name = (char const *)sym->st_name + str_tab;
char const *name = (char const *)(sym->st_name + str_tab);
if (!is_wanted(name))
continue;
@ -166,7 +166,7 @@ struct Sym_tab
/* set absolute value */
sym_tab[out_cnt].st_value += map->l_addr;
if (verbose)
PDBG("Read symbol %s val: %x", name, sym_tab[out_cnt].st_value);
PDBG("Read symbol %s val: %zx", name, sym_tab[out_cnt].st_value);
out_cnt++;
}
}

View File

@ -103,7 +103,7 @@ struct lwp * rumpuser_curlwp(void)
int rumpuser_thread_create(func f, void *arg, const char *name,
int mustjoin, int priority, int cpui_dx, void **cookie)
{
static int count = 0;
static long count = 0;
if (mustjoin)
*cookie = (void *)++count;