Copyright updates for 2007.
[deliverable/binutils-gdb.git] / sim / mn10300 / dv-mn103ser.c
index 7f20ed1f6b2195f09f32f3bd4ecc0666522f3693..f014f691831ce34c45d6e04ba0f4ec7f558be87e 100644 (file)
@@ -1,6 +1,6 @@
 /*  This file is part of the program GDB, the GNU debugger.
     
-    Copyright (C) 1998 Free Software Foundation, Inc.
+    Copyright (C) 1998, 2007 Free Software Foundation, Inc.
     Contributed by Cygnus Solutions.
     
     This program is free software; you can redistribute it and/or modify
@@ -240,7 +240,7 @@ do_polling_event (struct hw *me,
                  void *data)
 {
   struct mn103ser *serial = hw_data(me);
-  int serial_reg = (int) data;
+  long serial_reg = (long) data;
   char c;
   int count;
 
@@ -421,7 +421,7 @@ read_status_reg (struct hw *me,
       serial->device[serial_reg].event
        = hw_event_queue_schedule (me, 1000,
                                   do_polling_event,
-                                  (void *)serial_reg);
+                                  (void *) (long) serial_reg);
     }
 
   if ( nr_bytes == 1 )
This page took 0.031481 seconds and 4 git commands to generate.