Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 422696 Details for
Bug 571664
media-libs/imlib-1.9.15-r4 : /.../load.c:457:9: error: too few arguments to function ‘DGifOpenFileHandle’
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for giflib-5.1.2
imlib-1.9.15-giflib.patch (text/plain), 1.62 KB, created by
Helmut Jarausch
on 2016-01-12 15:55:33 UTC
(
hide
)
Description:
patch for giflib-5.1.2
Filename:
MIME Type:
Creator:
Helmut Jarausch
Created:
2016-01-12 15:55:33 UTC
Size:
1.62 KB
patch
obsolete
>--- Imlib/load.c.ORIG 2016-01-12 10:45:00.763546544 +0100 >+++ Imlib/load.c 2016-01-12 16:10:29.250427957 +0100 >@@ -431,6 +431,17 @@ > #endif /* HAVE_LIBTIFF */ > > #ifdef HAVE_LIBGIF >+ >+static void >+PrintGifError(void) >+{ >+ char *Err = GifErrorString(0); >+ >+ if (Err != NULL) >+ fprintf(stderr, "\nGIF-LIB error: %s.\n", Err); >+ else >+ fprintf(stderr, "\nGIF-LIB undefined error %d.\n", GifError()); >+} > unsigned char * > _LoadGIF(ImlibData * id, FILE *f, int *w, int *h, int *t) > { >@@ -444,6 +455,7 @@ > int intjump[] = {8, 8, 4, 2}; > int istransp, transp; > int fd; >+ int Error; > > done = 0; > istransp = 0; >@@ -454,7 +466,7 @@ > fd = fileno(f); > /* Apparently rewind(f) isn't sufficient */ > lseek(fd, (long) 0, 0); >- gif = DGifOpenFileHandle(fd); >+ gif = DGifOpenFileHandle(fd,&Error); > > if (!gif) > return NULL; >@@ -481,13 +493,13 @@ > rows = malloc(*h * sizeof(GifRowType *)); > if (!rows) > { >- DGifCloseFile(gif); >+ DGifCloseFile(gif,&Error); > return NULL; > } > data = _imlib_malloc_image(*w, *h); > if (!data) > { >- DGifCloseFile(gif); >+ DGifCloseFile(gif,&Error); > free(rows); > return NULL; > } >@@ -498,7 +510,7 @@ > rows[i] = malloc(*w * sizeof(GifPixelType)); > if (!rows[i]) > { >- DGifCloseFile(gif); >+ DGifCloseFile(gif,&Error); > for (i = 0; i < *h; i++) > if (rows[i]) > free(rows[i]); >@@ -587,7 +599,7 @@ > } > } > } >- DGifCloseFile(gif); >+ DGifCloseFile(gif,&Error); > for (i = 0; i < *h; i++) > free(rows[i]); > free(rows);
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 571664
:
422684
|
422686
|
422688
|
422694
| 422696