1 Replaces sysv3 legacy functions with modern equivalents.
3 Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com>
4 Index: ipsec-tools-0.7.3/src/racoon/pfkey.c
5 ===================================================================
6 --- ipsec-tools-0.7.3.orig/src/racoon/pfkey.c 2010-07-12 14:46:52.000000000 +0200
7 +++ ipsec-tools-0.7.3/src/racoon/pfkey.c 2010-07-12 15:01:39.000000000 +0200
8 @@ -3008,12 +3008,12 @@
9 struct sockaddr *paddr;
11 paddr = (struct sockaddr *)(xisr + 1);
12 - bcopy(paddr, &(*p_isr)->saidx.src,
13 + memmove(&(*p_isr)->saidx.src, paddr,
14 sysdep_sa_len(paddr));
16 paddr = (struct sockaddr *)((caddr_t)paddr
17 + sysdep_sa_len(paddr));
18 - bcopy(paddr, &(*p_isr)->saidx.dst,
19 + memmove(&(*p_isr)->saidx.dst, paddr,
20 sysdep_sa_len(paddr));
23 Index: ipsec-tools-0.7.3/src/racoon/racoonctl.c
24 ===================================================================
25 --- ipsec-tools-0.7.3.orig/src/racoon/racoonctl.c 2010-07-12 14:49:51.000000000 +0200
26 +++ ipsec-tools-0.7.3/src/racoon/racoonctl.c 2010-07-12 15:00:52.000000000 +0200
28 errx(1, "cannot read source address");
30 /* We get "ip[port]" strip the port */
31 - if ((idx = index(srcaddr, '[')) == NULL)
32 + if ((idx = strchr(srcaddr, '[')) == NULL)
33 errx(1, "unexpected source address format");