pass ARCH down to uClibc
[buildroot.git] / package / netkitbase / netkitbase-remove-bcopy.patch
blobb74b85b5f090f07508736f780e1e504c460158c4
1 diff -ur netkit-base-0.17/inetd/builtins.c netkit-base-0.17-patched/inetd/builtins.c
2 --- netkit-base-0.17/inetd/builtins.c 2000-07-22 15:13:07.000000000 -0500
3 +++ netkit-base-0.17-patched/inetd/builtins.c 2006-12-02 00:50:05.801209342 -0600
4 @@ -140,10 +140,10 @@
5 text[LINESIZ + 1] = '\n';
6 for (rs = ring;;) {
7 if ((len = endring - rs) >= LINESIZ)
8 - bcopy(rs, text, LINESIZ);
9 + memcpy(text, rs, LINESIZ);
10 else {
11 - bcopy(rs, text, len);
12 - bcopy(ring, text + len, LINESIZ - len);
13 + memcpy(text, rs, len);
14 + memcpy(text + len, ring, LINESIZ - len);
16 if (++rs == endring)
17 rs = ring;
18 @@ -183,10 +183,10 @@
19 return;
21 if ((len = endring - rs) >= LINESIZ)
22 - bcopy(rs, text, LINESIZ);
23 + memcpy(text, rs, LINESIZ);
24 else {
25 - bcopy(rs, text, len);
26 - bcopy(ring, text + len, LINESIZ - len);
27 + memcpy(text, rs, len);
28 + memcpy(text + len, ring, LINESIZ - len);
30 if (++rs == endring)
31 rs = ring;