[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-bugs
Subject:    bin/3718: Compile of /usr/src/usr.sbin/ppp fails if DEBUG defined
From:       housley () pr-comm ! com
Date:       1997-05-30 13:10:04
[Download RAW message or body]


>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:

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic