cvs: gd /libgd/examples crop.c

From: Date: Fri, 28 Dec 2007 16:54:24 +0000
Subject: cvs: gd /libgd/examples crop.c
Groups: php.gd.cvs 
Request: Send a blank email to php-gd-cvs+get-390@lists.php.net to get a copy of this message
pajoye Fri Dec 28 16:54:24 2007 UTC Modified files: /gd/libgd/examples crop.c Log: - nuke unused variables http://cvs.php.net/viewvc.cgi/gd/libgd/examples/crop.c?r1=1.1&r2=1.2&diff_format=u Index: gd/libgd/examples/crop.c diff -u gd/libgd/examples/crop.c:1.1 gd/libgd/examples/crop.c:1.2 --- gd/libgd/examples/crop.c:1.1 Wed Dec 12 15:56:03 2007 +++ gd/libgd/examples/crop.c Fri Dec 28 16:54:24 2007 @@ -1,4 +1,4 @@ -/* $Id: crop.c,v 1.1 2007/12/12 15:56:03 pajoye Exp $ */ +/* $Id: crop.c,v 1.2 2007/12/28 16:54:24 pajoye Exp $ */ /* * You can fetch a set of samples TIFF images here: * ftp://ftp.remotesensing.org/pub/libtiff/ @@ -39,14 +39,11 @@ int main() { gdImagePtr im, im2; - FILE *fp; - char path[2048]; - char dst[2048]; im = gdImageCreateTrueColor(400, 400); if (!im) { - fprintf(stderr, "Can't create 400x400 TC image\n", path); + fprintf(stderr, "Can't create 400x400 TC image\n"); return 1; } @@ -85,4 +82,5 @@ } gdImageDestroy(im); + return 0; }

« previous php.gd.cvs (#390) next »