slackbuilds_ponce/network/driftnet/driftnet.patch
Willy Sudiarto Raharjo bf4c85e145 network/driftnet: Fix build with giflib 5.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2016-01-17 09:40:16 +07:00

29 lines
733 B
Diff

--- driftnet-0.1.6_p20090401/gif.c.old 2016-01-04 23:08:50.734142148 +0700
+++ driftnet-0.1.6_p20090401/gif.c 2016-01-04 23:11:58.759931300 +0700
@@ -20,7 +20,7 @@
*/
int gif_load_hdr(img I) {
GifFileType *g;
- g = I->us = DGifOpenFileHandle(fileno(I->fp));
+ g = I->us = DGifOpenFileHandle(fileno(I->fp), NULL);
if (!I->us) {
I->err = IE_HDRFORMAT;
return 0;
@@ -36,7 +36,7 @@
* Abort loading a GIF file after the header is done.
*/
int gif_abort_load(img I) {
- DGifCloseFile((GifFileType*)I->us);
+ DGifCloseFile((GifFileType*)I->us, NULL);
return 1;
}
@@ -114,7 +114,7 @@
ret = 1;
fail:
- DGifCloseFile(g);
+ DGifCloseFile(g, NULL);
return ret;
}