From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 24 21:50:04 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5EED916A420 for ; Fri, 24 Aug 2007 21:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2ACA813C467 for ; Fri, 24 Aug 2007 21:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7OLo3eD008083 for ; Fri, 24 Aug 2007 21:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7OLo3dQ008082; Fri, 24 Aug 2007 21:50:03 GMT (envelope-from gnats) Resent-Date: Fri, 24 Aug 2007 21:50:03 GMT Resent-Message-Id: <200708242150.l7OLo3dQ008082@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Hung-Yi Chen Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D430316A469 for ; Fri, 24 Aug 2007 21:43:35 +0000 (UTC) (envelope-from root@gaod.tfcis.org) Received: from gaod.tfcis.org (gaod.tfcis.org [210.70.137.25]) by mx1.freebsd.org (Postfix) with SMTP id 832CE13C45B for ; Fri, 24 Aug 2007 21:43:35 +0000 (UTC) (envelope-from root@gaod.tfcis.org) Received: by gaod.tfcis.org (Postfix, from userid 0) id 34ABD5644B; Sat, 25 Aug 2007 05:44:40 +0800 (CST) Message-Id: <20070824214440.34ABD5644B@gaod.tfcis.org> Date: Sat, 25 Aug 2007 05:44:40 +0800 (CST) From: Hung-Yi Chen To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: anarcat@anarcat.ath.cx Subject: ports/115796: [PATCH] mail/mls: fix GCC 4.2 builds X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2007 21:50:04 -0000 >Number: 115796 >Category: ports >Synopsis: [PATCH] mail/mls: fix GCC 4.2 builds >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Aug 24 21:50:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Hung-Yi Chen >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD gaod.tfcis.org 6.2-STABLE FreeBSD 6.2-STABLE #18: Fri Aug 3 04:02:30 CST >Description: Fix build breakage under gcc 4.2 >How-To-Repeat: >Fix: --- patch-mls.h begins here --- --- mls.h.orig 2003-06-02 19:26:34.000000000 +0800 +++ mls.h 2007-08-25 05:33:49.000000000 +0800 @@ -75,6 +75,9 @@ #define EXIT_NOMEM 4 #define EXIT_REGEX 5 +// because we must specify it when 2dimensional array is passed to function +#define SNUMB_LEN 4 + /* *** structures for BEST messages *** */ typedef struct bestQUOTE* nQptr; struct bestQUOTE { --- patch-mls.h ends here --- --- patch-mls_text.c begins here --- --- mls_text.c.orig 2003-05-28 04:07:13.000000000 +0800 +++ mls_text.c 2007-08-25 05:33:42.000000000 +0800 @@ -22,9 +22,6 @@ #include "mls_lang.h" #include "mls_stat.h" -// because we must specify it when 2dimensional array is passed to function -#define SNUMB_LEN 4 - extern int lang; extern int graph; extern int onlytitle; --- patch-mls_text.c ends here --- --- patch-mls_text.h begins here --- --- mls_text.h.orig 2003-02-15 18:16:07.000000000 +0800 +++ mls_text.h 2007-08-25 05:33:58.000000000 +0800 @@ -30,7 +30,7 @@ void PrintTopQ(nTptr, int); void PrintTopHtml(nTptr, int); void PrintGraph(long[], int, int); -void PrintGraphHtml(long[], long[][], int, char *); +void PrintGraphHtml(long[], long[][SNUMB_LEN], int, char *); void PrintStatText(int, char *); void PrintStatHtml(int, char *, short); --- patch-mls_text.h ends here --- >Release-Note: >Audit-Trail: >Unformatted: