From 00e843b1edf2e20272169ac80be3268d7db64112 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 29 Apr 2018 12:33:53 +0200 Subject: [PATCH] [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 903b1af3d66..41653a25493 100644 --- a/drivers/filesystems/fastfat/iface.c +++ b/drivers/filesystems/fastfat/iface.c @@ -30,24 +30,10 @@ #define NDEBUG #include -#ifdef KDBG -#include -#include -#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 0de6a486a0c..5bb5289febe 100644 --- a/drivers/filesystems/fastfat/vfat.h +++ b/drivers/filesystems/fastfat/vfat.h @@ -5,6 +5,10 @@ #include #include #include +#ifdef KDBG +#include +#include +#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 */