From owner-freebsd-bugs Fri May 30 06:20:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA15295 for bugs-outgoing; Fri, 30 May 1997 06:20:06 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA15269; Fri, 30 May 1997 06:20:03 -0700 (PDT) Resent-Date: Fri, 30 May 1997 06:20:03 -0700 (PDT) Resent-Message-Id: <199705301320.GAA15269@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, housley@pr-comm.com Received: from cyber2.servtech.com (root@cyber2.servtech.com [199.1.22.12]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA15038 for ; Fri, 30 May 1997 06:14:10 -0700 (PDT) Received: from pr-comm.com (root@prcomm.roc.servtech.com [204.181.3.14]) by cyber2.servtech.com (8.8.5/8.8.5) with ESMTP id JAA25545 for ; Fri, 30 May 1997 09:14:07 -0400 (EDT) Received: (from root@localhost) by pr-comm.com (8.8.5/8.8.5) id JAA18495; Fri, 30 May 1997 09:10:04 -0400 (EDT) Message-Id: <199705301310.JAA18495@pr-comm.com> Date: Fri, 30 May 1997 09:10:04 -0400 (EDT) From: housley@pr-comm.com Reply-To: housley@pr-comm.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/3718: Compile of /usr/src/usr.sbin/ppp fails if DEBUG defined Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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: