From ad81871f1568df82c537643ff8947568390cc0f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Delanoy?= Date: Tue, 29 Nov 2011 23:30:49 +0100 Subject: [PATCH] cmd: Move a global var to the file using it. --- programs/cmd/builtins.c | 2 +- programs/cmd/wcmdmain.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c index 51972974da8..a418d92af0a 100644 --- a/programs/cmd/builtins.c +++ b/programs/cmd/builtins.c @@ -41,13 +41,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(cmd); -extern HINSTANCE hinst; extern int defaultColor; extern BOOL echo_mode; extern WCHAR quals[MAX_PATH], param1[MAX_PATH], param2[MAX_PATH]; extern BATCH_CONTEXT *context; extern DWORD errorlevel; +static HINSTANCE hinst; static struct env_stack *saved_environment; struct env_stack *pushd_directories; diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c index 194788488df..94ce9de6ce7 100644 --- a/programs/cmd/wcmdmain.c +++ b/programs/cmd/wcmdmain.c @@ -31,8 +31,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(cmd); -extern WCHAR inbuilt[][10]; -HINSTANCE hinst; +extern const WCHAR inbuilt[][10]; DWORD errorlevel; int defaultColor = 7; BOOL echo_mode = TRUE;