From owner-freebsd-bugs Sat Oct 27 12:30: 6 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E2A5037B403 for ; Sat, 27 Oct 2001 12:30:00 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9RJU0988326; Sat, 27 Oct 2001 12:30:00 -0700 (PDT) (envelope-from gnats) Received: from agora.rdrop.com (agora.rdrop.com [199.26.172.34]) by hub.freebsd.org (Postfix) with ESMTP id 35ABC37B403 for ; Sat, 27 Oct 2001 12:28:50 -0700 (PDT) Received: (from alan@localhost) by agora.rdrop.com (8.11.4/8.11.4) id f9RJSnB89664; Sat, 27 Oct 2001 12:28:49 -0700 (PDT) (envelope-from alan) Message-Id: <200110271928.f9RJSnB89664@agora.rdrop.com> Date: Sat, 27 Oct 2001 12:28:49 -0700 (PDT) From: Alan Batie Reply-To: Alan Batie To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/31536: Debug code fails to compile Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 31536 >Category: bin >Synopsis: Debug code fails to compile >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 27 12:30:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Alan Batie >Release: FreeBSD 4.3-STABLE i386 >Organization: RainDrop Laboratories >Environment: System: FreeBSD agora.rdrop.com 4.3-STABLE FreeBSD 4.3-STABLE #3: Wed Sep 5 13:36:38 PDT 2001 root@aggie.rdrop.com:/usr/src/freebsd/sys/compile/AGORA i386 >Description: When I compiled with DEBUG to try to debug why calendar isn't reporting some entries, the compile failed. Apparently, the "len" variable used to exist but no longer does. >How-To-Repeat: make CFLAGS+=-DDEBUG >Fix: *** day.c.org Sat Oct 27 12:22:23 2001 --- day.c Sat Oct 27 12:27:59 2001 *************** *** 194,200 **** } #ifdef DEBUG ! fprintf(stderr, "Mktime: %d %d %d %s\n", (int)mktime(&tm), (int)t, len, asctime(&tm)); #endif return(mktime(&tm)); --- 194,200 ---- } #ifdef DEBUG ! fprintf(stderr, "Mktime: %d %d %s\n", (int)mktime(&tm), (int)t, asctime(&tm)); #endif return(mktime(&tm)); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message