Mercurial > resize-gd
comparison resize-gd.c @ 3:35a50e57b6f5
removes some compiler warnings
author | meillo@marmaro.de |
---|---|
date | Sat, 14 Jun 2008 10:47:45 +0200 |
parents | 8e71b54b6e1e |
children | 8e2804fe30bc |
comparison
equal
deleted
inserted
replaced
2:8e71b54b6e1e | 3:35a50e57b6f5 |
---|---|
18 #include "gd.h" /* Bring in the gd library functions */ | 18 #include "gd.h" /* Bring in the gd library functions */ |
19 | 19 |
20 | 20 |
21 enum { | 21 enum { |
22 Png, | 22 Png, |
23 Jpg, | 23 Jpg |
24 }; | 24 }; |
25 | 25 |
26 struct size { | 26 struct size { |
27 int w; | 27 int w; |
28 int h; | 28 int h; |
82 | 82 |
83 | 83 |
84 int | 84 int |
85 main(int argc, char* argv[]) { | 85 main(int argc, char* argv[]) { |
86 int i; | 86 int i; |
87 int w, h; | |
88 int width, height; | |
89 int x, y; | |
90 int type; | 87 int type; |
91 gdImagePtr im_in; | 88 gdImagePtr im_in; |
92 gdImagePtr im_out; | 89 gdImagePtr im_out; |
93 FILE* in; | 90 FILE* in; |
94 FILE* out; | 91 FILE* out; |