From c8f6470122c3fa0bd990df2d1597ae60023d4df1 Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 13 Jan 2009 22:26:40 +0000 Subject: [PATCH] removed const char* warnings --- lib/readers/swf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/readers/swf.c b/lib/readers/swf.c index 0540e0f..783d569 100644 --- a/lib/readers/swf.c +++ b/lib/readers/swf.c @@ -481,7 +481,7 @@ void swf_doc_destroy(gfxdocument_t*gfx) free(gfx);gfx=0; } -void swf_doc_set_parameter(gfxdocument_t*gfx, char*name, char*value) +void swf_doc_set_parameter(gfxdocument_t*gfx, const char*name, const char*value) { swf_doc_internal_t*i= (swf_doc_internal_t*)gfx->internal; } @@ -509,12 +509,12 @@ gfxpage_t* swf_doc_getpage(gfxdocument_t*doc, int page) return swf_page; } -void swf_set_parameter(gfxsource_t*src, char*name, char*value) +void swf_set_parameter(gfxsource_t*src, const char*name, const char*value) { msg(" setting parameter %s to \"%s\"", name, value); } -gfxdocument_t*swf_open(gfxsource_t*src, char*filename) +gfxdocument_t*swf_open(gfxsource_t*src, const char*filename) { gfxdocument_t*swf_doc = (gfxdocument_t*)malloc(sizeof(gfxdocument_t)); memset(swf_doc, 0, sizeof(gfxdocument_t)); -- 1.7.10.4