step 3: bcopy->memcpy or memmove (chose by hand), twiddle args
authorMark Eichin <eichin@mit.edu>
Wed, 15 Jun 1994 22:38:19 +0000 (22:38 +0000)
committerMark Eichin <eichin@mit.edu>
Wed, 15 Jun 1994 22:38:19 +0000 (22:38 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3815 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/telnet/telnetd/authenc.c
src/appl/telnet/telnetd/slc.c
src/appl/telnet/telnetd/state.c
src/appl/telnet/telnetd/sys_term.c
src/appl/telnet/telnetd/telnetd-ktd.c
src/appl/telnet/telnetd/telnetd.c
src/appl/telnet/telnetd/utility.c
src/include/kerberosIV/krb.h

index fcd17fcf73b6efddda1204f6f37e9baf86882697..cee4ebb1de73122eb5d04161e4df614068777c8e 100644 (file)
@@ -45,7 +45,7 @@ net_write(str, len)
        int len;
 {
        if (nfrontp + len < netobuf + BUFSIZ) {
-               bcopy((void *)str, (void *)nfrontp, len);
+               memcpy((void *)nfrontp, (void *)str, len);
                nfrontp += len;
                return(len);
        }
index 145746afeaf4db01d3998a96aa889887ca33b671..b7dabf323ba7d1e01fae587080e9a4d12dce29ba 100644 (file)
@@ -465,7 +465,7 @@ do_opt_slc(ptr, len)
                        def_slcbuf = (unsigned char *)malloc((unsigned)len);
                        if (def_slcbuf == (unsigned char *)0)
                                return;  /* too bad */
-                       bcopy(ptr, def_slcbuf, len);
+                       memcpy(def_slcbuf, ptr, len);
                }
        }
 
index 0349ce61962628ce0fbebfe8eb980bf62034344b..4fa88e46357155290cf9cb531d060946353c5b36 100644 (file)
@@ -366,7 +366,7 @@ gotiac:                     switch (c) {
                char    xbuf2[BUFSIZ];
                register char *cp;
                int n = pfrontp - opfrontp, oc;
-               bcopy(opfrontp, xptyobuf, n);
+               memcpy(xptyobuf, opfrontp, n);
                pfrontp = opfrontp;
                pfrontp += term_input(xptyobuf, pfrontp, n, BUFSIZ+NETSLOP,
                                        xbuf2, &oc, BUFSIZ);
index 750568ce01e982cb9b4463d7bacdb7830288edc9..5181dc268320e204d3acfbca396c8c9665bccee4 100644 (file)
@@ -223,7 +223,7 @@ copy_termbuf(cp, 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) */
index f73a4d4f8ea0ba1007a011c794d03effdba7e9d1..8257571305acffdc4cb097dd50524799bebb4f31 100644 (file)
@@ -549,24 +549,24 @@ getterminaltype(name)
     if (his_state_is_will(TELOPT_TSPEED)) {
        static char sbbuf[] = { IAC, SB, TELOPT_TSPEED, TELQUAL_SEND, IAC, SE };
 
-       bcopy(sbbuf, nfrontp, sizeof sbbuf);
+       memcpy(nfrontp, sbbuf, sizeof sbbuf);
        nfrontp += sizeof sbbuf;
     }
     if (his_state_is_will(TELOPT_XDISPLOC)) {
        static char sbbuf[] = { IAC, SB, TELOPT_XDISPLOC, TELQUAL_SEND, IAC, SE };
 
-       bcopy(sbbuf, nfrontp, sizeof sbbuf);
+       memcpy(nfrontp, sbbuf, sizeof sbbuf);
        nfrontp += sizeof sbbuf;
     }
     if (his_state_is_will(TELOPT_ENVIRON)) {
        static char sbbuf[] = { IAC, SB, TELOPT_ENVIRON, TELQUAL_SEND, IAC, SE };
 
-       bcopy(sbbuf, nfrontp, sizeof sbbuf);
+       memcpy(nfrontp, sbbuf, sizeof sbbuf);
        nfrontp += sizeof sbbuf;
     }
     if (his_state_is_will(TELOPT_TTYPE)) {
 
-       bcopy(ttytype_sbbuf, nfrontp, sizeof ttytype_sbbuf);
+       memcpy(nfrontp, ttytype_sbbuf, sizeof ttytype_sbbuf);
        nfrontp += sizeof ttytype_sbbuf;
     }
     if (his_state_is_will(TELOPT_TSPEED)) {
@@ -636,7 +636,7 @@ _gettermname()
     if (his_state_is_wont(TELOPT_TTYPE))
        return;
     settimer(baseline);
-    bcopy(ttytype_sbbuf, nfrontp, sizeof ttytype_sbbuf);
+    memcpy(nfrontp, ttytype_sbbuf, sizeof ttytype_sbbuf);
     nfrontp += sizeof ttytype_sbbuf;
     while (sequenceIs(ttypesubopt, baseline))
        ttloop();
index d1c3c3176c51ce29ff4c4f1bf42c58ed80765c26..7e97b0c72d83eb7bc9e9d44fb0f8d2d2aaa4511c 100644 (file)
@@ -637,33 +637,33 @@ getterminaltype(name)
        static unsigned char sb[] =
                        { IAC, SB, TELOPT_TSPEED, TELQUAL_SEND, IAC, SE };
 
-       bcopy(sb, nfrontp, sizeof sb);
+       memcpy(nfrontp, sb, sizeof sb);
        nfrontp += sizeof sb;
     }
     if (his_state_is_will(TELOPT_XDISPLOC)) {
        static unsigned char sb[] =
                        { IAC, SB, TELOPT_XDISPLOC, TELQUAL_SEND, IAC, SE };
 
-       bcopy(sb, nfrontp, sizeof sb);
+       memcpy(nfrontp, sb, sizeof sb);
        nfrontp += sizeof sb;
     }
     if (his_state_is_will(TELOPT_NEW_ENVIRON)) {
        static unsigned char sb[] =
                        { IAC, SB, TELOPT_NEW_ENVIRON, TELQUAL_SEND, IAC, SE };
 
-       bcopy(sb, nfrontp, sizeof sb);
+       memcpy(nfrontp, sb, sizeof sb);
        nfrontp += sizeof sb;
     }
     else if (his_state_is_will(TELOPT_OLD_ENVIRON)) {
        static unsigned char sb[] =
                        { IAC, SB, TELOPT_OLD_ENVIRON, TELQUAL_SEND, IAC, SE };
 
-       bcopy(sb, nfrontp, sizeof sb);
+       memcpy(nfrontp, sb, sizeof sb);
        nfrontp += sizeof sb;
     }
     if (his_state_is_will(TELOPT_TTYPE)) {
 
-       bcopy(ttytype_sbbuf, nfrontp, sizeof ttytype_sbbuf);
+       memcpy(nfrontp, ttytype_sbbuf, sizeof ttytype_sbbuf);
        nfrontp += sizeof ttytype_sbbuf;
     }
     if (his_state_is_will(TELOPT_TSPEED)) {
@@ -737,7 +737,7 @@ _gettermname()
     if (his_state_is_wont(TELOPT_TTYPE))
        return;
     settimer(baseline);
-    bcopy(ttytype_sbbuf, nfrontp, sizeof ttytype_sbbuf);
+    memcpy(nfrontp, ttytype_sbbuf, sizeof ttytype_sbbuf);
     nfrontp += sizeof ttytype_sbbuf;
     while (sequenceIs(ttypesubopt, baseline))
        ttloop();
index 29625cd7a8ac791dd2d4d7cf866afeb6da6ec66c..6fe838abe697f032ebabad99b92c27cbd0388fad 100644 (file)
@@ -220,7 +220,7 @@ netclear()
                next = nextitem(next);
            } while (wewant(next) && (nfrontp > next));
            length = next-thisitem;
-           bcopy(thisitem, good, length);
+           memcpy(good, thisitem, length);
            good += length;
            thisitem = next;
        } else {
@@ -327,7 +327,7 @@ writenet(ptr, len)
                netflush();
        }
 
-       bcopy(ptr, nfrontp, len);
+       memcpy(nfrontp, ptr, len);
        nfrontp += len;
 
 }  /* end of writenet */
index 06b84ba43fa34bd15ef37f96c97f758f326bf6f8..a0d0ec42d6f13c35706364f83a174b351c2b410b 100644 (file)
@@ -293,7 +293,7 @@ typedef struct msg_dat MSG_DAT;
  swab(((char *) x) +10,((char *)  _krb_swap_tmp) +4 ,2); \
  swab(((char *) x) +12,((char *)  _krb_swap_tmp) +2 ,2); \
  swab(((char *) x) +14,((char *)  _krb_swap_tmp) +0 ,2); \
bcopy((char *)_krb_swap_tmp,(char *)x,16);\
memcpy((char *)x,(char *)_krb_swap_tmp,16);\
                             }
 
 #define     swap_u_12(x) {\
@@ -304,7 +304,7 @@ typedef struct msg_dat MSG_DAT;
  swab(((char *) x) +6, ((char *)  _krb_swap_tmp) +4 ,2); \
  swab(((char *) x) +8, ((char *)  _krb_swap_tmp) +2 ,2); \
  swab(((char *) x) +10,((char *)  _krb_swap_tmp) +0 ,2); \
bcopy((char *)_krb_swap_tmp,(char *)x,12);\
memcpy((char *)x,(char *)_krb_swap_tmp,12);\
                             }
 
 #define     swap_C_Block(x) {\
@@ -313,7 +313,7 @@ typedef struct msg_dat MSG_DAT;
  swab(((char *) x) +2,((char *)  _krb_swap_tmp) +4 ,2); \
  swab(((char *) x) +4,((char *)  _krb_swap_tmp) +2 ,2); \
  swab(((char *) x) +6,((char *)  _krb_swap_tmp)    ,2); \
bcopy((char *)_krb_swap_tmp,(char *)x,8);\
memcpy((char *)x,(char *)_krb_swap_tmp,8);\
                             }
 #define     swap_u_quad(x) {\
  unsigned long   _krb_swap_tmp[4];\
@@ -321,7 +321,7 @@ typedef struct msg_dat MSG_DAT;
  swab(((char *) &x) +2,((char *)  _krb_swap_tmp) +4 ,2); \
  swab(((char *) &x) +4,((char *)  _krb_swap_tmp) +2 ,2); \
  swab(((char *) &x) +6,((char *)  _krb_swap_tmp)    ,2); \
bcopy((char *)_krb_swap_tmp,(char *)&x,8);\
memcpy((char *)&x,(char *)_krb_swap_tmp,8);\
                             }
 
 #define     swap_u_long(x) {\