diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-07-08 18:20:12 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-10-02 22:14:45 -0700 |
commit | 9b9f7c3cacc1d220962fab1b910c6d76e2cd8087 (patch) | |
tree | eadfc8ac2e15dcdf111bbb25e065eef3b9fdf817 /common.c | |
parent | 5425131a498cdab54fbcfbae4991b22ebfa793ee (diff) |
Convert remaining bcopy() calls to memcpy()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
Diffstat (limited to 'common.c')
-rw-r--r-- | common.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -278,7 +278,7 @@ SetUpConnectionSocket(int iport, void (*connectionFunc) (int)) if (hp == NULL) panic("No address for our host"); - bcopy((char *) hp->h_addr, (char *) &sin.sin_addr, hp->h_length); + memcpy(&sin.sin_addr, hp->h_addr, hp->h_length); } /* new code -- INADDR_ANY should be better than using the name of the host machine. The host machine may have several different network |