pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/libfetch/files bcopy -> memcpy
details: https://anonhg.NetBSD.org/pkgsrc/rev/d760e019d0a7
branches: trunk
changeset: 538392:d760e019d0a7
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu Feb 07 16:14:44 2008 +0000
description:
bcopy -> memcpy
diffstat:
net/libfetch/files/common.c | 4 ++--
net/libfetch/files/ftp.c | 10 +++++-----
net/libfetch/files/http.c | 4 ++--
3 files changed, 9 insertions(+), 9 deletions(-)
diffs (67 lines):
diff -r 9086d0bf8122 -r d760e019d0a7 net/libfetch/files/common.c
--- a/net/libfetch/files/common.c Thu Feb 07 16:14:32 2008 +0000
+++ b/net/libfetch/files/common.c Thu Feb 07 16:14:44 2008 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: common.c,v 1.1.1.1 2008/02/07 01:48:22 joerg Exp $ */
+/* $NetBSD: common.c,v 1.2 2008/02/07 16:14:44 joerg Exp $ */
/*-
* Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav
* All rights reserved.
@@ -642,7 +642,7 @@
tmp = *p + *len;
snprintf(tmp->name, PATH_MAX, "%s", name);
- bcopy(us, &tmp->stat, sizeof(*us));
+ memcpy(&tmp->stat, us, sizeof(*us));
(*len)++;
(++tmp)->name[0] = 0;
diff -r 9086d0bf8122 -r d760e019d0a7 net/libfetch/files/ftp.c
--- a/net/libfetch/files/ftp.c Thu Feb 07 16:14:32 2008 +0000
+++ b/net/libfetch/files/ftp.c Thu Feb 07 16:14:44 2008 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ftp.c,v 1.1.1.1 2008/02/07 01:48:22 joerg Exp $ */
+/* $NetBSD: ftp.c,v 1.2 2008/02/07 16:14:44 joerg Exp $ */
/*-
* Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav
* All rights reserved.
@@ -746,8 +746,8 @@
if (e == FTP_EPASSIVE_MODE)
sin6->sin6_port = htons(port);
else {
- bcopy(addr + 2, (char *)&sin6->sin6_addr, 16);
- bcopy(addr + 19, (char *)&sin6->sin6_port, 2);
+ memcpy(&sin6->sin6_addr, addr + 2, 16);
+ memcpy(&sin6->sin6_port, addr + 19, 2);
}
break;
case AF_INET:
@@ -755,8 +755,8 @@
if (e == FTP_EPASSIVE_MODE)
sin4->sin_port = htons(port);
else {
- bcopy(addr, (char *)&sin4->sin_addr, 4);
- bcopy(addr + 4, (char *)&sin4->sin_port, 2);
+ memcpy(&sin4->sin_addr, addr, 4);
+ memcpy(&sin4->sin_port, addr + 4, 2);
}
break;
default:
diff -r 9086d0bf8122 -r d760e019d0a7 net/libfetch/files/http.c
--- a/net/libfetch/files/http.c Thu Feb 07 16:14:32 2008 +0000
+++ b/net/libfetch/files/http.c Thu Feb 07 16:14:44 2008 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: http.c,v 1.1.1.1 2008/02/07 01:48:23 joerg Exp $ */
+/* $NetBSD: http.c,v 1.2 2008/02/07 16:14:44 joerg Exp $ */
/*-
* Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav
* All rights reserved.
@@ -265,7 +265,7 @@
l = io->buflen - io->bufpos;
if (len < l)
l = len;
- bcopy(io->buf + io->bufpos, buf + pos, l);
+ memcpy(buf + pos, io->buf + io->bufpos, l);
io->bufpos += l;
}
Home |
Main Index |
Thread Index |
Old Index