aboutsummaryrefslogtreecommitdiff
path: root/gdb/29k-share
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/29k-share')
-rw-r--r--gdb/29k-share/udi/udip2soc.c8
-rw-r--r--gdb/29k-share/udi/udr.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/gdb/29k-share/udi/udip2soc.c b/gdb/29k-share/udi/udip2soc.c
index ec7a8fb..d0547da 100644
--- a/gdb/29k-share/udi/udip2soc.c
+++ b/gdb/29k-share/udi/udip2soc.c
@@ -296,8 +296,8 @@ UDIConnect(Config, Session)
}
soc_con[cnt].tip_sockaddr.sa_family = domain;
- bcopy(soc_con[cnt].tip_string,
- soc_con[cnt].tip_sockaddr.sa_data,
+ memcpy(soc_con[cnt].tip_sockaddr.sa_data,
+ soc_con[cnt].tip_string,
sizeof(soc_con[cnt].tip_sockaddr.sa_data));
if (connect(soc_con[cnt].dfe_sd,
&soc_con[cnt].tip_sockaddr,
@@ -372,8 +372,8 @@ UDIConnect(Config, Session)
dfe_errno = UDIErrorNoSuchConnection;
goto tip_failure;
}
- bcopy(tip_info_p->h_addr,
- (char *)&soc_con[cnt].tip_sockaddr_in.sin_addr,
+ memcpy((char *)&soc_con[cnt].tip_sockaddr_in.sin_addr,
+ tip_info_p->h_addr,
tip_info_p->h_length);
}
soc_con[cnt].tip_sockaddr_in.sin_port
diff --git a/gdb/29k-share/udi/udr.c b/gdb/29k-share/udi/udr.c
index e35da32..1e58eda 100644
--- a/gdb/29k-share/udi/udr.c
+++ b/gdb/29k-share/udi/udr.c
@@ -146,7 +146,7 @@ int size;
{ udr_errno = UDIErrorIPCInternal;
return -1;
}
- bcopy((char*)object_p, udrs->putbytes, size);
+ memcpy(udrs->putbytes, (char*)object_p, size);
udrs->putbytes += size;
if(udrs->putbytes > udrs->putend) udrs->putend = udrs->putbytes;
}
@@ -169,7 +169,7 @@ int size;
return -1; /* return error code */
}
} /* read data from character stream buffer */
- bcopy(udrs->getbytes, (char*)object_p, size);
+ memcpy((char*)object_p, udrs->getbytes, size);
udrs->getbytes += size;
}
else