1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

- Unbreak on HEAD (gcc 4.2)

PR:		ports/115796
Submitted by:	Hung-Yi Chen
Approved by:	maintainer
This commit is contained in:
Chin-San Huang 2007-08-25 19:37:34 +00:00
parent 539ab171b2
commit 0453f7e778
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=198304
3 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,12 @@
--- mls.h.orig 2007-08-26 03:26:30.000000000 +0800
+++ mls.h 2007-08-26 03:27:11.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 {

View File

@ -0,0 +1,12 @@
--- mls_text.c.orig 2007-08-26 03:28:10.000000000 +0800
+++ mls_text.c 2007-08-26 03:28:32.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;

View File

@ -0,0 +1,11 @@
--- mls_text.h.orig 2007-08-26 03:29:23.000000000 +0800
+++ mls_text.h 2007-08-26 03:30:12.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);