bcmp is obsolete
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 29 Apr 1995 05:19:37 +0000 (21:19 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 29 Apr 1995 05:19:37 +0000 (21:19 -0800)
SCCS-vsn: sbin/ping/ping.c 8.3

usr/src/sbin/ping/ping.c

index 87d5d60..e5a5aa4 100644 (file)
@@ -15,7 +15,7 @@ static char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)ping.c     8.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)ping.c     8.3 (Berkeley) %G%";
 #endif /* not lint */
 
 /*
 #endif /* not lint */
 
 /*
@@ -567,7 +567,7 @@ pr_pack(buf, cc, from)
                                continue;
                        if (i == old_rrlen
                            && cp == (u_char *)buf + sizeof(struct ip) + 2
                                continue;
                        if (i == old_rrlen
                            && cp == (u_char *)buf + sizeof(struct ip) + 2
-                           && !bcmp((char *)cp, old_rr, i)
+                           && !memcmp(cp, old_rr, i)
                            && !(options & F_FLOOD)) {
                                (void)printf("\t(same route)");
                                i = ((i + 3) / 4) * 4;
                            && !(options & F_FLOOD)) {
                                (void)printf("\t(same route)");
                                i = ((i + 3) / 4) * 4;