diff -rupN driftnet-0.1.6-20040426cvs/gif.c driftnet-0.1.6-20040426cvs-new/gif.c
--- driftnet-0.1.6-20040426cvs/gif.c 2002-07-08 22:57:17.000000000 +0200
+++ driftnet-0.1.6-20040426cvs-new/gif.c 2018-01-22 23:32:29.986155812 +0100
@@ -20,7 +20,7 @@ static const char rcsid[] = "$Id: gif.c,
*/
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 @@ int gif_load_hdr(img I) {
* 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 @@ int gif_load_img(img I) {
ret = 1;
fail:
- DGifCloseFile(g);
+ DGifCloseFile(g, NULL);
return ret;
}
diff -rupN driftnet-0.1.6-20040426cvs/Makefile driftnet-0.1.6-20040426cvs-new/Makefile
--- driftnet-0.1.6-20040426cvs/Makefile 2007-10-22 03:51:34.000000000 +0200
+++ driftnet-0.1.6-20040426cvs-new/Makefile 2018-01-22 23:37:58.604137635 +0100
@@ -35,7 +35,7 @@ LDLIBS += -lpcap -lpthread #-lefence
# Optional C compiler and linker flags. Typical driftnet builds have support
# for displaying captured images in an X window, and need the following flags:
CFLAGS += `pkg-config --cflags gtk+-2.0`
-LDLIBS += -ljpeg -lungif -lpng `pkg-config --libs gtk+-2.0`
+LDLIBS += -ljpeg -lgif -lpng `pkg-config --libs gtk+-2.0`
# Alternatively, you can build a version of driftnet which can only be used
# in `adjunct' mode as the back end for some other image-processing program. To