Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sjhill at uclibc.org <sjhill@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/netkittelnet
Date: Wed, 23 Jan 2008 19:35:51 -0800 (PST)	[thread overview]
Message-ID: <20080124033551.29FB112C589@busybox.net> (raw)

Author: sjhill
Date: 2008-01-23 19:35:48 -0800 (Wed, 23 Jan 2008)
New Revision: 20896

Log:
Remove instances of bcopy so package will compile.


Added:
   trunk/buildroot/package/netkittelnet/netkittelnet-bcopy.patch


Changeset:
Added: trunk/buildroot/package/netkittelnet/netkittelnet-bcopy.patch
===================================================================
--- trunk/buildroot/package/netkittelnet/netkittelnet-bcopy.patch	                        (rev 0)
+++ trunk/buildroot/package/netkittelnet/netkittelnet-bcopy.patch	2008-01-24 03:35:48 UTC (rev 20896)
@@ -0,0 +1,57 @@
+diff -ur netkit-telnet-0.17/telnetd/authenc.c netkit-telnet-0.17-patched/telnetd/authenc.c
+--- netkit-telnet-0.17/telnetd/authenc.c	1999-12-12 08:59:44.000000000 -0600
++++ netkit-telnet-0.17-patched/telnetd/authenc.c	2008-01-23 21:31:45.546793060 -0600
+@@ -35,7 +35,7 @@
+     int len;
+ {
+     if (nfrontp + len < netobuf + BUFSIZ) {
+-	bcopy((void *)str, (void *)nfrontp, len);
++	memcpy((void *)nfrontp, (void *)str, len);
+ 	nfrontp += len;
+ 	return(len);
+     }
+diff -ur netkit-telnet-0.17/telnetd/slc.c netkit-telnet-0.17-patched/telnetd/slc.c
+--- netkit-telnet-0.17/telnetd/slc.c	1999-12-12 08:59:44.000000000 -0600
++++ netkit-telnet-0.17-patched/telnetd/slc.c	2008-01-23 21:32:07.859024619 -0600
+@@ -432,7 +432,7 @@
+ 	    def_slclen = len;
+ 	    def_slcbuf = malloc((unsigned)len);
+ 	    if (def_slcbuf == NULL) return;  /* too bad */
+-	    bcopy(ptr, def_slcbuf, len);
++	    memcpy(def_slcbuf, ptr, len);
+ 	}
+     }
+ }
+diff -ur netkit-telnet-0.17/telnetd/sys_term.c netkit-telnet-0.17-patched/telnetd/sys_term.c
+--- netkit-telnet-0.17/telnetd/sys_term.c	1999-12-17 08:28:47.000000000 -0600
++++ netkit-telnet-0.17-patched/telnetd/sys_term.c	2008-01-23 21:32:27.583229320 -0600
+@@ -84,7 +84,7 @@
+  */
+ void copy_termbuf(char *cp, int len) {
+     if (len > sizeof(termbuf)) len = sizeof(termbuf);
+-    bcopy(cp, (char *)&termbuf, len);
++    memcpy((char *)&termbuf, cp, len);
+     termbuf2 = termbuf;
+ }
+ #endif /* defined(LINEMODE) && defined(TIOCPKT_IOCTL) */
+diff -ur netkit-telnet-0.17/telnetd/utility.c netkit-telnet-0.17-patched/telnetd/utility.c
+--- netkit-telnet-0.17/telnetd/utility.c	1999-12-12 08:59:45.000000000 -0600
++++ netkit-telnet-0.17-patched/telnetd/utility.c	2008-01-23 21:33:02.087587426 -0600
+@@ -248,7 +248,7 @@
+ 		next = nextitem(next);
+ 	    } while (wewant(next) && (nfrontp > next));
+ 	    length = next-thisitem;
+-	    bcopy(thisitem, good, length);
++	    memcpy(good, thisitem, length);
+ 	    good += length;
+ 	    thisitem = next;
+ 	} else {
+@@ -351,7 +351,7 @@
+ 		netflush();
+ 	}
+ 
+-	bcopy(ptr, nfrontp, len);
++	memcpy(nfrontp, ptr, len);
+ 	nfrontp += len;
+ 
+ }  /* end of writenet */

                 reply	other threads:[~2008-01-24  3:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080124033551.29FB112C589@busybox.net \
    --to=sjhill@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox