https://git.reactos.org/?p=reactos.git;a=commitdiff;h=00e843b1edf2e20272169…
commit 00e843b1edf2e20272169ac80be3268d7db64112
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Apr 29 12:33:53 2018 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sun Apr 29 12:33:53 2018 +0200
[FASTFAT] Reduce the number of local declaration.
---
drivers/filesystems/fastfat/iface.c | 14 --------------
drivers/filesystems/fastfat/vfat.h | 8 ++++++++
2 files changed, 8 insertions(+), 14 deletions(-)
diff --git a/drivers/filesystems/fastfat/iface.c b/drivers/filesystems/fastfat/iface.c
index 903b1af3d6..41653a2549 100644
--- a/drivers/filesystems/fastfat/iface.c
+++ b/drivers/filesystems/fastfat/iface.c
@@ -30,24 +30,10 @@
#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
-#ifdef KDBG
-BOOLEAN
-NTAPI
-vfatKdbgHandler(
- IN PCHAR Command,
- IN ULONG Argc,
- IN PCH Argv[]);
-#endif
-
/* GLOBALS *****************************************************************/
PVFAT_GLOBAL_DATA VfatGlobalData;
diff --git a/drivers/filesystems/fastfat/vfat.h b/drivers/filesystems/fastfat/vfat.h
index 0de6a486a0..5bb5289feb 100644
--- a/drivers/filesystems/fastfat/vfat.h
+++ b/drivers/filesystems/fastfat/vfat.h
@@ -5,6 +5,10 @@
#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")))
@@ -1042,6 +1046,10 @@ DriverEntry(
PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath);
+#ifdef KDBG
+/* kdbg.c */
+KDBG_CLI_ROUTINE vfatKdbgHandler;
+#endif
/* misc.c */