]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix a couple of compiler warnings.
authorNicholas Nethercote <njn@valgrind.org>
Wed, 15 Oct 2003 10:34:03 +0000 (10:34 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Wed, 15 Oct 2003 10:34:03 +0000 (10:34 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1931

coregrind/vg_translate.c
include/vg_skin.h

index 7863c5968e9cf70259f21a3fe12d2ffd4fc2fc55..6113df289e91975bc9e4e0354d30c8286700294a 100644 (file)
@@ -2391,7 +2391,7 @@ void VG_(translate) ( /*IN*/  ThreadId tid,
 
       info.si_signo = VKI_SIGSEGV;
       info.si_code = 1;                /* address not mapped to object */
-      info._sifields._sigfault._addr = orig_addr;
+      info._sifields._sigfault._addr = (void*)orig_addr;
 
       VG_(deliver_signal)(tid, &info, False);
       return;
index faf5d72de3226c82373f902aa4523117a372de15..ba163156d75c97b5151b648f5a90adf7944bacd5 100644 (file)
@@ -434,6 +434,7 @@ extern Int  VG_(pipe)   ( Int fd[2] );
 /* Nb: VG_(rename)() declared in stdio.h section above */
 extern Int  VG_(unlink) ( Char* file_name );
 extern Int  VG_(stat)   ( Char* file_name, struct vki_stat* buf );
+extern Int  VG_(fstat)  ( Int   fd,        struct vki_stat* buf );
 
 extern Char* VG_(getcwd) ( Char* buf, Int size );