From af85039a83c372fc3321520a85b220c59cfa4125 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Sat, 29 Apr 2023 14:39:11 +0300 Subject: [PATCH] Driver: Use assert(), not NT_ASSERT() --- src/driver/fortpkt.c | 2 +- src/driver/fortps.c | 2 +- src/driver/fortwrk.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/driver/fortpkt.c b/src/driver/fortpkt.c index 338a6d91..63459452 100644 --- a/src/driver/fortpkt.c +++ b/src/driver/fortpkt.c @@ -173,7 +173,7 @@ inline static void fort_packet_fill_in_interface_indexes( *subInterfaceField = FWPS_FIELD_INBOUND_TRANSPORT_V6_SUB_INTERFACE_INDEX; break; default: - NT_ASSERT(0); + assert(0); } } diff --git a/src/driver/fortps.c b/src/driver/fortps.c index d6639511..a57ae564 100644 --- a/src/driver/fortps.c +++ b/src/driver/fortps.c @@ -307,7 +307,7 @@ static PFORT_PSNAME fort_pstree_add_service_name(PFORT_PSTREE ps_tree, PCFORT_PS static void fort_pstree_proc_set_name(PFORT_PSNODE proc, PFORT_PSNAME ps_name) { - NT_ASSERT(proc->ps_name == NULL); + assert(proc->ps_name == NULL); proc->ps_name = ps_name; diff --git a/src/driver/fortwrk.c b/src/driver/fortwrk.c index 34e8ea0c..0d6b8bcd 100644 --- a/src/driver/fortwrk.c +++ b/src/driver/fortwrk.c @@ -58,7 +58,7 @@ static void fort_worker_wait(PFORT_WORKER worker) FORT_API void fort_worker_func_set(PFORT_WORKER worker, UCHAR work_id, FORT_WORKER_FUNC worker_func) { - NT_ASSERT(work_id >= 0 && work_id < FORT_WORKER_FUNC_COUNT); + assert(work_id >= 0 && work_id < FORT_WORKER_FUNC_COUNT); worker->funcs[work_id] = worker_func; }