openbsd-ports/net/netatalk/patches/patch-libatp-atpsreqc

29 lines
873 B
Plaintext

--- libatalk/atp/atp_sreq.c.orig Fri Oct 22 03:53:34 1993
+++ libatalk/atp/atp_sreq.c Thu Nov 18 15:54:33 1999
@@ -27,6 +27,7 @@
#include <sys/errno.h>
#include <sys/uio.h>
#include <signal.h>
+#include <string.h>
#include <netinet/in.h>
#undef s_net
@@ -40,7 +41,7 @@
ATP ah; /* open atp handle */
struct atp_block *atpb; /* parameter block */
int respcount; /* buffers available for response */
- u_char flags; /* ATP_XO, ATP_TREL?? */
+ u_int8_t flags; /* ATP_XO, ATP_TREL?? */
{
struct atpbuf *req_buf;
int i;
@@ -77,7 +78,7 @@
return( -1 );
}
build_req_packet( req_buf, ah->atph_tid++, flags | ATP_TREQ, atpb );
- bcopy( (char *)atpb->atp_saddr, &req_buf->atpbuf_addr,
+ memcpy( &req_buf->atpbuf_addr, (char *)atpb->atp_saddr,
sizeof( struct sockaddr_at ));
/* send the initial request