ports/115796: [PATCH] mail/mls: fix GCC 4.2 builds

Hung-Yi Chen gaod at hychen.org
Fri Aug 24 21:50:04 UTC 2007


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



More information about the freebsd-ports-bugs mailing list