From 2ac06198d58c8d3afb8b4ed5ad6fb9d298a39d0b Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Fri, 1 Mar 2024 11:45:09 +0300 Subject: [PATCH] Driver: Minor fixes --- src/driver/fortdev.c | 2 -- src/driver/fortscb.c | 1 - src/driver/forttmr.c | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/driver/fortdev.c b/src/driver/fortdev.c index 4788ede5..b0ecc28c 100644 --- a/src/driver/fortdev.c +++ b/src/driver/fortdev.c @@ -7,8 +7,6 @@ #include "fortcout.h" #include "fortdbg.h" -#include "fortpkt.h" -#include "fortps.h" #include "fortscb.h" #include "forttrace.h" #include "fortutl.h" diff --git a/src/driver/fortscb.c b/src/driver/fortscb.c index 638ed3dd..614f95a9 100644 --- a/src/driver/fortscb.c +++ b/src/driver/fortscb.c @@ -5,7 +5,6 @@ #include "fortcb.h" #include "fortdbg.h" #include "fortdev.h" -#include "fortpkt.h" static NTSTATUS fort_syscb_register( PCWSTR sourcePath, PCALLBACK_OBJECT *cb_obj, PVOID *cb_reg, PCALLBACK_FUNCTION cb_func) diff --git a/src/driver/forttmr.c b/src/driver/forttmr.c index 3f24d23b..e10ce4ff 100644 --- a/src/driver/forttmr.c +++ b/src/driver/forttmr.c @@ -75,7 +75,7 @@ void fort_timer_set_running(PFORT_TIMER timer, BOOL run) const ULONG interval = (flags & FORT_TIMER_ONESHOT) != 0 ? 0 : period; const ULONG delay = (flags & FORT_TIMER_COALESCABLE) != 0 ? 500 : 0; - LARGE_INTEGER due = { + const LARGE_INTEGER due = { .QuadPart = (INT64) period * -10000LL /* ms -> us */ };