Date: Fri, 30 May 1997 09:10:04 -0400 (EDT) From: housley@pr-comm.com To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/3718: Compile of /usr/src/usr.sbin/ppp fails if DEBUG defined Message-ID: <199705301310.JAA18495@pr-comm.com> Resent-Message-ID: <199705301320.GAA15269@hub.freebsd.org>
index | next in thread | raw e-mail
>Number: 3718
>Category: bin
>Synopsis: Compile of /usr/src/usr.sbin/ppp fails if DEBUG defined
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri May 30 06:20:01 PDT 1997
>Last-Modified:
>Originator: James E. Houley
>Organization:
PR Communications, Inc.
>Release: FreeBSD 2.2-STABLE i386
>Environment:
>Description:
If /usr/src/usr.sbin/ppp is compiled with DEBUG defined
hdlc.c will fail to compile with an error.
>How-To-Repeat:
Add CFLAGS += -DDEBUG to the makefile
>Fix:
--- hdlc.c Fri May 30 09:05:21 1997
+++ hdlc.c.orig Fri May 30 09:04:45 1997
@@ -200,11 +200,11 @@
void
DecodePacket(u_short proto, struct mbuf *bp)
{
- u_char *cp;
-
#ifdef DEBUG
logprintf("proto = %04x\n", proto);
#endif
+ u_char *cp;
+
switch (proto) {
case PROTO_LCP:
LcpInput(bp);
>Audit-Trail:
>Unformatted:
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705301310.JAA18495>
