summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSean Fox <dyntryx@gmail.com>2008-06-22 19:25:33 +0000
committerSean Fox <dyntryx@gmail.com>2008-06-22 19:25:33 +0000
commite3a48173a9cb94b0a9306a23a5a56459f1b7b483 (patch)
tree51b7f7537ff7ea768ed66eb61ea20b3e0545d4f9 /examples
parent419825572dbc3990ef4c7d29eb7205c8aaa0bf08 (diff)
downloadlibnsgif-e3a48173a9cb94b0a9306a23a5a56459f1b7b483.tar.gz
libnsgif-e3a48173a9cb94b0a9306a23a5a56459f1b7b483.tar.bz2
Return values are now in an enum
svn path=/branches/dynis/libnsgif/; revision=4424
Diffstat (limited to 'examples')
-rw-r--r--examples/decode_gif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/decode_gif.c b/examples/decode_gif.c
index 4dc9efb..7290aea 100644
--- a/examples/decode_gif.c
+++ b/examples/decode_gif.c
@@ -69,9 +69,9 @@ int main(int argc, char *argv[])
/* begin decoding */
do {
code = gif_initialise(&gif, &bitmap_callbacks);
- if (code != 0 && code != 1)
+ if (code != GIF_OK && code != GIF_WORKING)
warning("gif_initialise", code);
- } while (code != 1);
+ } while (code != GIF_OK);
printf("P3\n");
printf("# %s\n", argv[1]);
@@ -89,7 +89,7 @@ int main(int argc, char *argv[])
char *image;
code = gif_decode_frame(&gif, i, &bitmap_callbacks);
- if (code != 0)
+ if (code != GIF_OK)
warning("gif_decode_frame", code);
printf("# frame %u:\n", i);