[NTOSKRNL]
authorDmitry Gorbachev <gorbachev@reactos.org>
Wed, 5 Sep 2012 21:38:02 +0000 (21:38 +0000)
committerDmitry Gorbachev <gorbachev@reactos.org>
Wed, 5 Sep 2012 21:38:02 +0000 (21:38 +0000)
- Remove an unused variable.

[CHARMAP][CSRSRV][MOUNTMGR]
- Declare variables extern.

svn path=/trunk/; revision=57241

reactos/base/applications/charmap/charmap.c
reactos/base/applications/charmap/precomp.h
reactos/drivers/filters/mountmgr/mntmgr.h
reactos/drivers/filters/mountmgr/mountmgr.c
reactos/ntoskrnl/cache/section/data.c
reactos/subsystems/win32/csrss/csrsrv/api/wapi.c

index 33d7351..eefa919 100644 (file)
 
 HINSTANCE hInstance;
 HWND      hAdvancedDlg;
+HWND      hCharmapDlg;
 HWND      hStatusWnd;
 HICON     hSmIcon;
 HICON     hBgIcon;
+SETTINGS  Settings;
 
 /* Font-enumeration callback */
 static
index e59ad0d..c2779cc 100644 (file)
@@ -57,8 +57,8 @@ typedef struct {
     BOOL IsAdvancedView;
 } SETTINGS;
 
-SETTINGS Settings;
-HWND hCharmapDlg;
+extern SETTINGS Settings;
+extern HWND hCharmapDlg;
 
 LRESULT CALLBACK LrgCellWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
 
index 06c6119..f1c401a 100644 (file)
@@ -152,8 +152,6 @@ typedef struct _UNIQUE_ID_WORK_ITEM
     ULONG StackSize;                          // 0x2C
 } UNIQUE_ID_WORK_ITEM, *PUNIQUE_ID_WORK_ITEM; // 0x30
 
-PDEVICE_OBJECT gdeviceObject;
-
 /* Memory allocation helpers */
 #define AllocatePool(Size) ExAllocatePoolWithTag(PagedPool, Size, 'AtnM')
 #define FreePool(P)        ExFreePoolWithTag(P, 'AtnM')
@@ -168,6 +166,7 @@ PDEVICE_OBJECT gdeviceObject;
 /* mountmgr.c */
 
 extern UNICODE_STRING DosDevicesMount;
+extern PDEVICE_OBJECT gdeviceObject;
 extern UNICODE_STRING ReparseIndex;
 extern UNICODE_STRING DeviceFloppy;
 extern UNICODE_STRING DeviceMount;
index 06f5ab3..260852e 100644 (file)
@@ -34,6 +34,7 @@
 /* FIXME */
 GUID MountedDevicesGuid = {0x53F5630D, 0xB6BF, 0x11D0, {0x94, 0xF2, 0x00, 0xA0, 0xC9, 0x1E, 0xFB, 0x8B}};
 
+PDEVICE_OBJECT gdeviceObject;
 KEVENT UnloadEvent;
 LONG Unloading;
 
index 07ffb7d..5b1f40e 100644 (file)
@@ -91,8 +91,6 @@ extern PMMWSL MmWorkingSetList;
 
 /* GLOBALS *******************************************************************/
 
-ULONG_PTR MmSubsectionBase;
-
 static const INFORMATION_CLASS_INFO ExSectionInfoClass[] =
 {
     ICI_SQ_SAME( sizeof(SECTION_BASIC_INFORMATION), sizeof(ULONG), ICIF_QUERY ), /* SectionBasicInformation */
index 3138178..adf9c58 100644 (file)
@@ -22,7 +22,7 @@ static PCSRSS_API_DEFINITION ApiDefinitions = NULL;
 UNICODE_STRING CsrApiPortName;
 volatile LONG CsrpStaticThreadCount;
 volatile LONG CsrpDynamicThreadTotal;
-ULONG CsrMaxApiRequestThreads;
+extern ULONG CsrMaxApiRequestThreads;
 
 /* FUNCTIONS *****************************************************************/