X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fdevices%2Ffile.c;h=70d1979b6a4b70cc3c069b509d81d84804411732;hb=b93de056e0b79f57c8f8fe22985b166c7d2c3dc3;hp=3b83c290d6efbf4424701d63e4595094cc76d12a;hpb=5386028e78548134c4a475dcfd815569e7dc9676;p=swftools.git diff --git a/lib/devices/file.c b/lib/devices/file.c index 3b83c29..70d1979 100644 --- a/lib/devices/file.c +++ b/lib/devices/file.c @@ -33,7 +33,7 @@ int file_setparameter(struct _gfxdevice*dev, const char*key, const char*value) { internal_t*i = (internal_t*)dev->internal; fprintf(i->fi, "setparameter %s=%s\n", key, value); - return 0; + return 1; } void file_startpage(struct _gfxdevice*dev, int width, int height) @@ -199,7 +199,7 @@ gfxresult_t* file_finish(struct _gfxdevice*dev) void gfxdevice_file_init(gfxdevice_t*dev, char*filename) { - internal_t*i = malloc(sizeof(internal_t)); + internal_t*i = (internal_t*)malloc(sizeof(internal_t)); memset(dev, 0, sizeof(gfxdevice_t)); dev->name = "file";