[FASTFAT] Reduce the number of local declaration.
authorPierre Schweitzer <pierre@reactos.org>
Sun, 29 Apr 2018 10:33:53 +0000 (12:33 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 29 Apr 2018 10:33:53 +0000 (12:33 +0200)
drivers/filesystems/fastfat/iface.c
drivers/filesystems/fastfat/vfat.h

index 903b1af..41653a2 100644 (file)
 #define NDEBUG
 #include <debug.h>
 
 #define NDEBUG
 #include <debug.h>
 
-#ifdef KDBG
-#include <ndk/kdfuncs.h>
-#include <reactos/kdros.h>
-#endif
-
 #if defined(ALLOC_PRAGMA)
 #pragma alloc_text(INIT, DriverEntry)
 #endif
 
 #if defined(ALLOC_PRAGMA)
 #pragma alloc_text(INIT, DriverEntry)
 #endif
 
-#ifdef KDBG
-BOOLEAN
-NTAPI
-vfatKdbgHandler(
-    IN PCHAR Command,
-    IN ULONG Argc,
-    IN PCH Argv[]);
-#endif
-
 /* GLOBALS *****************************************************************/
 
 PVFAT_GLOBAL_DATA VfatGlobalData;
 /* GLOBALS *****************************************************************/
 
 PVFAT_GLOBAL_DATA VfatGlobalData;
index 0de6a48..5bb5289 100644 (file)
@@ -5,6 +5,10 @@
 #include <ntdddisk.h>
 #include <dos.h>
 #include <pseh/pseh2.h>
 #include <ntdddisk.h>
 #include <dos.h>
 #include <pseh/pseh2.h>
+#ifdef KDBG
+#include <ndk/kdfuncs.h>
+#include <reactos/kdros.h>
+#endif
 
 #ifdef __GNUC__
 #define INIT_SECTION __attribute__((section ("INIT")))
 
 #ifdef __GNUC__
 #define INIT_SECTION __attribute__((section ("INIT")))
@@ -1042,6 +1046,10 @@ DriverEntry(
     PDRIVER_OBJECT DriverObject,
     PUNICODE_STRING RegistryPath);
 
     PDRIVER_OBJECT DriverObject,
     PUNICODE_STRING RegistryPath);
 
+#ifdef KDBG
+/* kdbg.c */
+KDBG_CLI_ROUTINE vfatKdbgHandler;
+#endif
 
 /* misc.c */
 
 
 /* misc.c */