From 4b6b8906a0c02b422b4718a8aaa5b3785d58d7a2 Mon Sep 17 00:00:00 2001 From: brian Date: Sat, 24 Jan 1998 00:03:14 +0000 Subject: Fix error message. Don't complicate the test compilation mentioned at the start of the file. --- usr.sbin/ppp/arp.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/ppp/arp.c b/usr.sbin/ppp/arp.c index 4651159..b62f940 100644 --- a/usr.sbin/ppp/arp.c +++ b/usr.sbin/ppp/arp.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: arp.c,v 1.25 1998/01/23 21:37:27 brian Exp $ + * $Id: arp.c,v 1.26 1998/01/23 22:29:16 brian Exp $ * */ @@ -55,15 +55,9 @@ #ifdef DEBUG /* - * To test the proxy arp stuff, put the following in your Makefile: + * To test the proxy arp stuff, just * - * arp-test: arp.c - * cp ${.CURDIR}/arp.c arp-test.c - * echo 'const char *' >>arp-test.c - * awk '/^Index2Nam/,/^}/' ${.CURDIR}/route.c >>arp-test.c - * cc -I${.CURDIR} -DDEBUG arp-test.c -o arp-test - * - * and type ``make arp-test''. + * cc -o arp-test -DDEBUG arp.c * */ #define LogIsKept(x) 1 @@ -262,7 +256,8 @@ get_ether_addr(int s, struct in_addr ipaddr, struct sockaddr_dl *hwaddr) mib[5] = 0; if (sysctl(mib, 6, NULL, &needed, NULL, 0) < 0) { - LogPrintf(LogERROR, "Index2Nam: sysctl: estimate: %s\n", strerror(errno)); + LogPrintf(LogERROR, "get_ether_addr: sysctl: estimate: %s\n", + strerror(errno)); return 0; } -- cgit v1.1