diff options
author | Dave Reisner | 2012-05-28 20:02:59 +0200 |
---|---|---|
committer | Karel Zak | 2012-05-29 09:33:14 +0200 |
commit | 283d626b367c730e1338a43500f85deb7c3afb26 (patch) | |
tree | 93d886f026473df7e55ae5ec5be74a792b4e2f6b /misc-utils | |
parent | arch, eject, elvtune: Gracefully disable on non-Linux platforms. (diff) | |
download | kernel-qcow2-util-linux-283d626b367c730e1338a43500f85deb7c3afb26.tar.gz kernel-qcow2-util-linux-283d626b367c730e1338a43500f85deb7c3afb26.tar.xz kernel-qcow2-util-linux-283d626b367c730e1338a43500f85deb7c3afb26.zip |
logger: use memcpy instead of bcopy
bcopy is marked legacy in POSIX.1-2001 and should not be used.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'misc-utils')
-rw-r--r-- | misc-utils/logger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/logger.c b/misc-utils/logger.c index b3fa54635..6f9edc225 100644 --- a/misc-utils/logger.c +++ b/misc-utils/logger.c @@ -130,7 +130,7 @@ udpopenlog(const char *servername, uint16_t port) { if ((fd = socket(AF_INET, SOCK_DGRAM , 0)) == -1) err(EXIT_FAILURE, _("socket")); - bcopy(serverhost->h_addr,&s_addr.sin_addr,serverhost->h_length); + memcpy(&s_addr.sin_addr, serverhost->h_addr, serverhost->h_length); s_addr.sin_family=AF_INET; s_addr.sin_port=htons(port); |