wmc: Constify some data

Dmitry Timoshkov dmitry at codeweavers.com
Thu Aug 30 03:18:13 CDT 2007


Hello,

Changelog:
    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"
-- 
1.5.2.5






More information about the wine-patches mailing list