Alexandre Julliard : msi/tests: Make some variables static.

Alexandre Julliard julliard at winehq.org
Fri Oct 1 11:38:40 CDT 2010


Module: wine
Branch: master
Commit: d1d1d0205d5f99c70a8bb807ee116c07594a8f26
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d1d1d0205d5f99c70a8bb807ee116c07594a8f26

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Oct  1 13:36:43 2010 +0200

msi/tests: Make some variables static.

---

 dlls/msi/tests/db.c      |    2 +-
 dlls/msi/tests/install.c |    2 +-
 dlls/msi/tests/package.c |    2 +-
 dlls/msi/tests/suminfo.c |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c
index b3fe3b8..8f6b1ec 100644
--- a/dlls/msi/tests/db.c
+++ b/dlls/msi/tests/db.c
@@ -8230,7 +8230,7 @@ static void test_select_with_tablenames(void)
     DeleteFileA(msifile);
 }
 
-UINT ordervals[6][3] =
+static const UINT ordervals[6][3] =
 {
     { MSI_NULL_INTEGER, 12, 13 },
     { 1, 2, 3 },
diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c
index 11b1de1..f232b50 100644
--- a/dlls/msi/tests/install.c
+++ b/dlls/msi/tests/install.c
@@ -7661,7 +7661,7 @@ error:
     RemoveDirectory("msitest");
 }
 
-struct sourcepathmap
+static const struct sourcepathmap
 {
     BOOL sost; /* shortone\shorttwo */
     BOOL solt; /* shortone\longtwo */
diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c
index 7efb6a2..948922f 100644
--- a/dlls/msi/tests/package.c
+++ b/dlls/msi/tests/package.c
@@ -31,7 +31,7 @@
 #include "wine/test.h"
 
 static const char msifile[] = "winetest-package.msi";
-char CURR_DIR[MAX_PATH];
+static char CURR_DIR[MAX_PATH];
 
 static UINT (WINAPI *pMsiApplyMultiplePatchesA)(LPCSTR, LPCSTR, LPCSTR);
 
diff --git a/dlls/msi/tests/suminfo.c b/dlls/msi/tests/suminfo.c
index 07202a3..76dac57 100644
--- a/dlls/msi/tests/suminfo.c
+++ b/dlls/msi/tests/suminfo.c
@@ -63,7 +63,7 @@
 #define PID_MSISOURCE PID_WORDCOUNT
 #define PID_MSIRESTRICT PID_CHARCOUNT
 
-const char *msifile = "winetest-suminfo.msi";
+static const char *msifile = "winetest-suminfo.msi";
 static const WCHAR msifileW[] = {
     'w','i','n','e','t','e','s','t','-','s','u','m','i','n','f','o','.','m','s','i',0 };
 




More information about the wine-cvs mailing list