FreeBSD Bugzilla – Attachment 134535 Details for
Bug 179219
graphics/fbm: Fix build with clang
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 3.12 KB, created by
tkato432
on 2013-06-02 19:10:03 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
tkato432
Created:
2013-06-02 19:10:03 UTC
Size:
3.12 KB
patch
obsolete
>diff -urN /usr/ports/graphics/fbm/files/patch-fbquant.c graphics/fbm/files/patch-fbquant.c >--- /usr/ports/graphics/fbm/files/patch-fbquant.c 1970-01-01 09:00:00.000000000 +0900 >+++ graphics/fbm/files/patch-fbquant.c 2013-06-03 00:00:00.000000000 +0900 >@@ -0,0 +1,47 @@ >+--- fbquant.c.orig >++++ fbquant.c >+@@ -131,6 +131,10 @@ >+ >+ int outtype = DEF_8BIT; /* Output format desired */ >+ >++static void clr_quantize (FBM *input, FBM *output, COLOR *cmap, int colors); >++static void split_box (PIXEL *box, int boxlen, int clr, int numclr, COLOR *cmap); >++static void load_config (char *filenm); >++ >+ /**************************************************************** >+ * main >+ ****************************************************************/ >+@@ -319,8 +323,7 @@ >+ * load_config: Read a series of fixed/ignore color settings from a file >+ ****************************************************************/ >+ >+-load_config (filenm) >+-char *filenm; >++static void load_config (char *filenm) >+ { FILE *infile = NULL; >+ char buf[BUFSIZ]; >+ int aindx, ard, agr, abl; /* Get 'i' arguments from sscanf */ >+@@ -530,10 +533,7 @@ >+ * algorithm. >+ ****************************************************************/ >+ >+-split_box (box, boxlen, clr, numclr, cmap) >+-PIXEL *box; >+-int boxlen, clr, numclr; >+-COLOR *cmap; >++static void split_box (PIXEL *box, int boxlen, int clr, int numclr, COLOR *cmap) >+ { int maxv[3], minv[3], numv[3]; >+ int pcnt[3][CUBSID]; >+ int sbox, snum, split, half, maxdif, dif; >+@@ -841,10 +841,7 @@ >+ * clr_quantize: Do Floyd Steinberg quantizing on the image >+ ****************************************************************/ >+ >+-clr_quantize (input, output, cmap, colors, fmap, fixedcolors) >+-FBM *input, *output; >+-COLOR *cmap, *fmap; >+-int colors, fixedcolors; >++static void clr_quantize (FBM *input, FBM *output, COLOR *cmap, int colors) >+ { int **cerr, **lerr, **terr; >+ int width = input->hdr.cols, height = input->hdr.rows; >+ int rowlen = input->hdr.rowlen, plnlen = input->hdr.plnlen; >diff -urN /usr/ports/graphics/fbm/files/patch-flgifc.c graphics/fbm/files/patch-flgifc.c >--- /usr/ports/graphics/fbm/files/patch-flgifc.c 1970-01-01 09:00:00.000000000 +0900 >+++ graphics/fbm/files/patch-flgifc.c 2013-06-03 00:00:00.000000000 +0900 >@@ -0,0 +1,14 @@ >+--- flgifc.c.orig >++++ flgifc.c >+@@ -168,10 +168,7 @@ >+ code available free from MLM@CS.CMU.EDU and from UUNET archives$"; >+ #endif >+ >+-compress( init_bits, outfile, ReadValue ) >+-int init_bits; >+-FILE *outfile; >+-ifunptr ReadValue; >++void compress( int init_bits, FILE *outfile, ifunptr ReadValue ) >+ { >+ register long fcode; >+ register code_int i = 0; >diff -urN /usr/ports/graphics/fbm/files/patch-flgife.c graphics/fbm/files/patch-flgife.c >--- /usr/ports/graphics/fbm/files/patch-flgife.c 1970-01-01 09:00:00.000000000 +0900 >+++ graphics/fbm/files/patch-flgife.c 2013-06-03 00:00:00.000000000 +0900 >@@ -0,0 +1,10 @@ >+--- flgife.c.orig >++++ flgife.c >+@@ -57,6 +57,7 @@ >+ code available free from MLM@CS.CMU.EDU and from UUNET archives$"; >+ #endif >+ >++void compress( int init_bits, FILE *outfile, ifunptr ReadValue ); >+ >+ /* >+ * Bump the 'curx' and 'cury' to point to the next pixel
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 179219
: 134535