X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=lib%2Fdevices%2Ffile.c;h=288a0a7691d88ec9da5e9104c490ce2e5d456ba9;hb=7d6aa220c65d5370387d700709ceaa4eb410c165;hp=e8cd97342d61cbebca1ba5becbc2be051591ff89;hpb=50dfb884ef98074f52053bd3c7d2333a87f976ad;p=swftools.git diff --git a/lib/devices/file.c b/lib/devices/file.c index e8cd973..288a0a7 100644 --- a/lib/devices/file.c +++ b/lib/devices/file.c @@ -138,7 +138,7 @@ void fileresult_destroy(struct _gfxresult*gfx) free(i->filename);i->filename = 0; } -int fileresult_save(struct _gfxresult*gfx, char*filename) +int fileresult_save(struct _gfxresult*gfx, const char*filename) { gfxresult_internal_t*i = (gfxresult_internal_t*)gfx->internal; FILE*fi,*fo; @@ -168,7 +168,7 @@ int fileresult_save(struct _gfxresult*gfx, char*filename) return 0; } -void* fileresult_get(struct _gfxresult*gfx, char*name) +void* fileresult_get(struct _gfxresult*gfx, const char*name) { return 0; } @@ -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";