[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    valgrind/none/tests [POSSIBLY UNSAFE]
From:       Tom Hughes <thh () cyberscience ! com>
Date:       2004-03-15 12:58:56
Message-ID: 20040315125856.165D79993 () office ! kde ! org
[Download RAW message or body]

CVS commit by thughes: 

Fix compiler warnings.


  M +4 -4      pushpopseg.c   1.2 [POSSIBLY UNSAFE: printf]


--- valgrind/none/tests/pushpopseg.c  #1.1:1.2
@@ -24,6 +24,6 @@ int main(int argc, char **argv)
       );
 
-  printf("sp change after push = %d\n", sp2 - sp1);
-  printf("sp change after pop = %d\n", sp3 - sp2);
+  printf("sp change after push = %ld\n", sp2 - sp1);
+  printf("sp change after pop = %ld\n", sp3 - sp2);
   printf("fs after push and pop = %04x\n", fs1);
    
@@ -40,6 +40,6 @@ int main(int argc, char **argv)
       );
 
-  printf("sp change after push = %d\n", sp2 - sp1);
-  printf("sp change after pop = %d\n", sp3 - sp2);
+  printf("sp change after push = %ld\n", sp2 - sp1);
+  printf("sp change after pop = %ld\n", sp3 - sp2);
   printf("fs after push and pop = %04x\n", fs1);
  


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic