blob: 1c948f35bc1937a97c5724f8c0c1147d9632f46d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
diff --git a/rwgif.c b/rwgif.c
index e67ac3c..6b19a28 100644
--- a/rwgif.c
+++ b/rwgif.c
@@ -54,8 +54,7 @@ open_gif_file (const char *filename, int *width, int *height)
assert(data != 0);
- int error;
- data->file = DGifOpenFileName(filename, &error);
+ data->file = DGifOpenFileName(filename, NULL);
assert(data->file !=0);
@@ -138,7 +137,7 @@ open_gif_file (const char *filename, int *width, int *height)
}
free(buffer);
- assert(DGifCloseFile(data->file) == GIF_OK);
+ assert(DGifCloseFile(data->file, NULL) == GIF_OK);
return data;
}
|