Dmitry Timoshkov : wmc: Constify some data.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Aug 30 06:20:21 CDT 2007
Module: wine
Branch: master
Commit: 1c994d497641094015afb4abe112e81ddf3dce99
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1c994d497641094015afb4abe112e81ddf3dce99
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Thu Aug 30 17:18:13 2007 +0900
wmc: Constify some data.
---
tools/wmc/wmc.c | 4 ++--
tools/wmc/write.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/wmc/wmc.c b/tools/wmc/wmc.c
index 2941219..910a654 100644
--- a/tools/wmc/wmc.c
+++ b/tools/wmc/wmc.c
@@ -31,7 +31,7 @@
#include "lang.h"
#include "write.h"
-static char usage[] =
+static const char usage[] =
"Usage: wmc [options...] [inputfile.mc]\n"
" -B x Set output byte-order x={n[ative], l[ittle], b[ig]}\n"
" (default is n[ative] which equals "
@@ -58,7 +58,7 @@ static char usage[] =
"bytes read, which should be 0x0000..0x00ff.\n"
;
-static char version_string[] =
+static const char version_string[] =
"Wine Message Compiler version " PACKAGE_VERSION "\n"
"Copyright 2000 Bertho A. Stultiens\n"
;
diff --git a/tools/wmc/write.c b/tools/wmc/write.c
index 5a8cd71..13b7263 100644
--- a/tools/wmc/write.c
+++ b/tools/wmc/write.c
@@ -87,7 +87,7 @@
* for normal character strings and 1 for unicode strings.
*/
-static char str_header[] =
+static const char str_header[] =
"/* This file is generated with wmc version " PACKAGE_VERSION ". Do not edit! */\n"
"/* Source : %s */\n"
"/* Cmdline: %s */\n"
More information about the wine-cvs
mailing list