ups 3.35 compilation woes

From: Terry R. Friedrichsen (terry_at_venus.sunquest.com)
Date: Wed Jan 03 2001 - 14:54:34 GMT


Under RedHat Linux 7.0 with gcc (egcs) 2.96:

To eliminate warnings about casting to pointer from integer of different size:

*** ao_pt_uarea.c.dist  Thu Dec 24 17:17:18 1998
--- ao_pt_uarea.c       Fri Dec 29 08:48:49 2000
***************
*** 338,344 ****
                }
  #else
                ur->ur_value = std_ptrace(PTRACE_PEEKUSER, ip->ip_pid,
!                                                       (char *)ur->ur_uaddr, 0);
  #endif
                if (errno != 0)
                        return -1;
--- 338,344 ----
                }
  #else
                ur->ur_value = std_ptrace(PTRACE_PEEKUSER, ip->ip_pid,
!                                                       (char *)(int)ur->ur_uaddr, 0);
  #endif
                if (errno != 0)
                        return -1;
***************
*** 358,364 ****
  
        ur = ip->ip_ptrace_info->uregs + ri;
        errno = 0;
!       e_ptrace(PTRACE_POKEUSER, ip->ip_pid, (char *)ur->ur_uaddr, (int)value);
        ur->ur_is_current = FALSE;
        return (errno == 0) ? 0 : -1;
  }
--- 358,364 ----
  
        ur = ip->ip_ptrace_info->uregs + ri;
        errno = 0;
!       e_ptrace(PTRACE_POKEUSER, ip->ip_pid, (char *)(int)ur->ur_uaddr, (int)value);
        ur->ur_is_current = FALSE;
        return (errno == 0) ? 0 : -1;
  }


Terry R. Friedrichsen

terry_at_venus.sunquest.com


This archive was generated by hypermail 2.1.4 : Wed Feb 13 2002 - 21:51:33 GMT