[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] [PATCH 3/6] bcopy() gone in POSIX 2008.
From: |
Fred Wright |
Subject: |
[gpsd-dev] [PATCH 3/6] bcopy() gone in POSIX 2008. |
Date: |
Mon, 5 Sep 2016 18:09:25 -0700 |
This is the bcopy() portion of commit 4c8a74f, without the
_DEFAULT_SOURCE hack.
TESTED:
Ran "scons build-all" on OSX, Linux, FreeBSD, OpenBSD, and NetBSD.
---
gps2udp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gps2udp.c b/gps2udp.c
index 8345079..8066a8b 100644
--- a/gps2udp.c
+++ b/gps2udp.c
@@ -165,7 +165,7 @@ static int open_udp(char **hostport)
return (-1);
}
- bcopy((char *)hp->h_addr, (char *)&remote[channel].sin_addr,
hp->h_length);
+ memcpy( &remote[channel].sin_addr, hp->h_addr, hp->h_length);
remote[channel].sin_port = htons((in_port_t)portnum);
}
return (0);
--
2.9.3
- Re: [gpsd-dev] [PATCH 4/6] Replaces deprecated usleep() with nanosleep()-based alternative., (continued)
[gpsd-dev] [PATCH 5/6] Fixes usleep() and other issues in contrib/ programs., Fred Wright, 2016/09/05
[gpsd-dev] [PATCH 6/6] Eliminates the one use of the portability-challenged alloca()., Fred Wright, 2016/09/05
[gpsd-dev] [PATCH 2/6] bzero() is gone in POSIX 2008. Use memset(), Fred Wright, 2016/09/05
[gpsd-dev] [PATCH 3/6] bcopy() gone in POSIX 2008.,
Fred Wright <=
Re: [gpsd-dev] [PATCH 1/6] Reverts most C99-related changes., Gary E. Miller, 2016/09/05