[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] [PATCH 3/6] bcopy() gone in POSIX 2008.
From: |
Gary E. Miller |
Subject: |
Re: [gpsd-dev] [PATCH 3/6] bcopy() gone in POSIX 2008. |
Date: |
Tue, 6 Sep 2016 17:05:35 -0700 |
Yo Fred!
No need, bcopy was removed in:
commit 4c8a74fa031d3356183e1562b7a9738d70e9f3ce
On Mon, 5 Sep 2016 18:09:25 -0700
Fred Wright <address@hidden> wrote:
> 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);
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
address@hidden Tel:+1 541 382 8588
pgpmsoX7eQQra.pgp
Description: OpenPGP digital signature
- Re: [gpsd-dev] [PATCH 4/6] Replaces deprecated usleep() with nanosleep()-based alternative., (continued)
- [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, 2016/09/05
- Re: [gpsd-dev] [PATCH 3/6] bcopy() gone in POSIX 2008.,
Gary E. Miller <=
- Re: [gpsd-dev] [PATCH 1/6] Reverts most C99-related changes., Gary E. Miller, 2016/09/05