return data[0];
}
-static UChar default_Addr_encoding ()
+static UChar default_Addr_encoding ( void )
{
switch (sizeof(Addr)) {
case 4: return DW_EH_PE_udata4;
Int VG_(memcmp) ( const void* s1, const void* s2, SizeT n )
{
Int res;
+ const UChar *p1 = s1;
+ const UChar *p2 = s2;
UChar a0;
UChar b0;
while (n != 0) {
- a0 = ((UChar *) s1)[0];
- b0 = ((UChar *) s2)[0];
- s1 += 1;
- s2 += 1;
+ a0 = p1[0];
+ b0 = p2[0];
+ p1 += 1;
+ p2 += 1;
res = a0 - b0;
if (res != 0)
return res;
/* Also the assembly helpers. */
VG_TRACK( new_mem_startup,
(Addr)&VG_(trampoline_stuff_start),
- &VG_(trampoline_stuff_end) - &VG_(trampoline_stuff_start),
+ (Addr)&VG_(trampoline_stuff_end) - (Addr)&VG_(trampoline_stuff_start),
False, /* readable? */
False, /* writable? */
True /* executable? */ );
"delivering signal %d (%s) to thread %d: on ALT STACK (%p-%p; %d bytes)",
sigNo, signame(sigNo), tid,
tst->altstack.ss_sp,
- tst->altstack.ss_sp + tst->altstack.ss_size,
+ (UChar *)tst->altstack.ss_sp + tst->altstack.ss_size,
tst->altstack.ss_size );
/* Signal delivery to tools */
maxaddr + ebase > info->exe_end)) {
VG_(printf)("Executable range %p-%p is outside the\n"
"acceptable range %p-%p\n",
- (void *)minaddr + ebase, (void *)maxaddr + ebase,
- (void *)info->exe_base, (void *)info->exe_end);
+ (char *)minaddr + ebase, (char *)maxaddr + ebase,
+ (char *)info->exe_base, (char *)info->exe_end);
return VKI_ENOMEM;
}
}
return "???";
}
-static void pp_all_mutexes()
+static void pp_all_mutexes(void)
{
Int i;
Int locks, buckets;
hp_census();
}
-static void ms_pre_clo_init()
+static void ms_pre_clo_init(void)
{
VG_(details_name) ("Massif");
VG_(details_version) (NULL);
}
/* Compute a quick summary of the leak check. */
-static void make_summary()
+static void make_summary(void)
{
Int i;