diff --git a/examples/unicode.h b/examples/unicode.h index 0831e23c..640d8e7e 100644 --- a/examples/unicode.h +++ b/examples/unicode.h @@ -48,7 +48,7 @@ #define GET_WARGV_OR_NULL() wargv // Release resources. LocalFree() is needed after CommandLineToArgvW(). -#define FREE_WARGV() LOCAL_FREE((W_CHAR** const)wargv) +#define FREE_WARGV() LOCAL_FREE((W_CHAR**)wargv) #define LOCAL_FREE(WARGV) \ do { \ if ((WARGV) != NULL) LocalFree(WARGV); \ diff --git a/examples/webpmux.c b/examples/webpmux.c index 02818590..be9da672 100644 --- a/examples/webpmux.c +++ b/examples/webpmux.c @@ -735,14 +735,14 @@ static int ParseCommandLine(Config* config, const W_CHAR** const unicode_argv) { } else if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "-help")) { PrintHelp(); DeleteConfig(config); - LOCAL_FREE((W_CHAR** const)unicode_argv); + LOCAL_FREE((W_CHAR**)unicode_argv); exit(0); } else if (!strcmp(argv[i], "-version")) { const int version = WebPGetMuxVersion(); printf("%d.%d.%d\n", (version >> 16) & 0xff, (version >> 8) & 0xff, version & 0xff); DeleteConfig(config); - LOCAL_FREE((W_CHAR** const)unicode_argv); + LOCAL_FREE((W_CHAR**)unicode_argv); exit(0); } else if (!strcmp(argv[i], "--")) { if (i < argc - 1) {