Changeset 1660


Ignore:
Timestamp:
02/23/10 10:41:36 (11 years ago)
Author:
merek
Message:

Merge from UMP - dingo35: Bcopy is not portable, replacing it by memmove

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/module-cccam.c

    r1645 r1660  
    12611261    struct hostent *server;
    12621262    server = gethostbyname(reader[ridx].device);
    1263     bcopy((char *)server->h_addr, (char *)&client[cs_idx].udp_sa.sin_addr.s_addr, server->h_length);
     1263    memmove((char *)&client[cs_idx].udp_sa.sin_addr.s_addr, (char *)server->h_addr, server->h_length);
    12641264
    12651265    if (reader[ridx].tcp_rto <= 0) reader[ridx].tcp_rto = 60 * 60 * 10;  // timeout to 10 hours
  • trunk/module-radegast.c

    r1125 r1660  
    261261  struct hostent *server;
    262262  server = gethostbyname(reader[ridx].device);
    263   bcopy((char *)server->h_addr, (char *)&client[cs_idx].udp_sa.sin_addr.s_addr, server->h_length);
     263  memmove((char *)&client[cs_idx].udp_sa.sin_addr.s_addr, (char *)server->h_addr, server->h_length);
    264264
    265265  cs_log("radegast: proxy %s:%d (fd=%d)",
Note: See TracChangeset for help on using the changeset viewer.