From alan@agora.rdrop.com  Sat Oct 27 12:28:50 2001
Return-Path: <alan@agora.rdrop.com>
Received: from agora.rdrop.com (agora.rdrop.com [199.26.172.34])
	by hub.freebsd.org (Postfix) with ESMTP id 35ABC37B403
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <alan@agora.rdrop.com>
Reply-To: Alan Batie <alan@agora.rdrop.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Debug code fails to compile
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         31536
>Category:       bin
>Synopsis:       Debug code fails to compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 27 12:30:00 PDT 2001
>Closed-Date:    Sun Nov 4 15:15:23 PST 2001
>Last-Modified:  Sun Nov 04 15:15:30 PST 2001
>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:
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Sun Nov 4 15:15:23 PST 2001 
State-Changed-Why:  
Applied, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31536 
>Unformatted:
