Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/gdb Cast ints to u_longs before casting t...



details:   https://anonhg.NetBSD.org/src/rev/78929b7671d0
branches:  trunk
changeset: 515839:78929b7671d0
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Oct 05 22:00:23 2001 +0000

description:
Cast ints to u_longs before casting to void *.  Avoids warning on
LP64 platforms.

diffstat:

 gnu/dist/toolchain/gdb/thread.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 33dcebc79eaa -r 78929b7671d0 gnu/dist/toolchain/gdb/thread.c
--- a/gnu/dist/toolchain/gdb/thread.c   Fri Oct 05 21:53:56 2001 +0000
+++ b/gnu/dist/toolchain/gdb/thread.c   Fri Oct 05 22:00:23 2001 +0000
@@ -540,7 +540,7 @@
     error ("Please specify a command following the thread ID list");
 
   old_chain = make_cleanup ((make_cleanup_func) restore_current_thread,
-                           (void *) inferior_pid);
+                           (void *) (u_long) inferior_pid);
 
   for (tp = thread_list; tp; tp = tp->next)
     if (thread_alive (tp))
@@ -576,7 +576,7 @@
     error ("Please specify a command following the thread ID list");
 
   old_chain = make_cleanup ((make_cleanup_func) restore_current_thread,
-                           (void *) inferior_pid);
+                           (void *) (u_long) inferior_pid);
 
   while (tidlist < cmd)
     {



Home | Main Index | Thread Index | Old Index