diff options
author | Sean Fox <dyntryx@gmail.com> | 2008-06-26 23:47:31 +0000 |
---|---|---|
committer | Sean Fox <dyntryx@gmail.com> | 2008-06-26 23:47:31 +0000 |
commit | 5d7db2d67b65963955beb05d30184ac28d898ddb (patch) | |
tree | a94713469a3c066e0c0241f6463644e3c2793fff /examples/decode_gif.c | |
parent | 8083eae40da40bc00ac2dd21382cbbd84e492f8e (diff) | |
download | libnsgif-5d7db2d67b65963955beb05d30184ac28d898ddb.tar.gz libnsgif-5d7db2d67b65963955beb05d30184ac28d898ddb.tar.bz2 |
Minor corrections; lib caller must now free gif_data
svn path=/branches/dynis/libnsgif/; revision=4459
Diffstat (limited to 'examples/decode_gif.c')
-rw-r--r-- | examples/decode_gif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/decode_gif.c b/examples/decode_gif.c index 9c7a40f..5e136c7 100644 --- a/examples/decode_gif.c +++ b/examples/decode_gif.c @@ -48,7 +48,7 @@ int main(int argc, char *argv[]) }; gif_animation gif; size_t size; - int code; + gif_result code; unsigned int i; if (argc != 2) { @@ -151,7 +151,7 @@ unsigned char *load_file(const char *path, size_t *data_size) } -void warning(const char *context, int code) +void warning(const char *context, gif_result code) { fprintf(stderr, "%s failed: ", context); switch (code) |