From 9880cd7504969ea2da9907426a8c1de4b009a693 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Fri, 11 Sep 2009 19:01:18 +0200 Subject: [PATCH] wined3d: Make some variables static. --- dlls/wined3d/arb_program_shader.c | 2 +- dlls/wined3d/directx.c | 2 +- dlls/wined3d/wined3d_main.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index 5c971d24760..b2d78066b86 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -4442,7 +4442,7 @@ static int sig_tree_compare(const void *key, const struct wine_rb_entry *entry) return compare_sig(key, e->sig); } -struct wine_rb_functions sig_tree_functions = +static const struct wine_rb_functions sig_tree_functions = { wined3d_rb_alloc, wined3d_rb_realloc, diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 129cbba0fa1..1ac8b118dda 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -789,7 +789,7 @@ struct driver_quirk const char *description; }; -struct driver_quirk quirk_table[] = +static const struct driver_quirk quirk_table[] = { { match_ati_r300_to_500, diff --git a/dlls/wined3d/wined3d_main.c b/dlls/wined3d/wined3d_main.c index bdb544a200f..67b1acd7d21 100644 --- a/dlls/wined3d/wined3d_main.c +++ b/dlls/wined3d/wined3d_main.c @@ -32,7 +32,7 @@ int num_lock = 0; void (*CDECL wine_tsx11_lock_ptr)(void) = NULL; void (*CDECL wine_tsx11_unlock_ptr)(void) = NULL; -CRITICAL_SECTION wined3d_cs; +static CRITICAL_SECTION wined3d_cs; static CRITICAL_SECTION_DEBUG wined3d_cs_debug = { 0, 0, &wined3d_cs, @@ -40,7 +40,7 @@ static CRITICAL_SECTION_DEBUG wined3d_cs_debug = &wined3d_cs_debug.ProcessLocksList}, 0, 0, {(DWORD_PTR)(__FILE__ ": wined3d_cs")} }; -CRITICAL_SECTION wined3d_cs = {&wined3d_cs_debug, -1, 0, 0, 0, 0}; +static CRITICAL_SECTION wined3d_cs = {&wined3d_cs_debug, -1, 0, 0, 0, 0}; /* When updating default value here, make sure to update winecfg as well, * where appropriate. */