From aadaa81cd6974b1f5af80565ff0d514309af133e Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Thu, 2 Nov 2023 07:51:23 -0500 Subject: [PATCH] Fix Win build --- examples/pub-sub/mqtt-pub.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/examples/pub-sub/mqtt-pub.c b/examples/pub-sub/mqtt-pub.c index 7ed2636ab..467fccee5 100644 --- a/examples/pub-sub/mqtt-pub.c +++ b/examples/pub-sub/mqtt-pub.c @@ -27,9 +27,6 @@ #include "examples/mqttnet.h" #include "examples/pub-sub/mqtt-pub-sub.h" -/* Locals */ -static int mStopRead = 0; - /* Configuration */ /* Maximum size for network read/write callbacks. There is also a v5 define that @@ -464,7 +461,6 @@ int pub_client(MQTTCtx *mqttCtx) static BOOL CtrlHandler(DWORD fdwCtrlType) { if (fdwCtrlType == CTRL_C_EVENT) { - mStopRead = 1; PRINTF("Received Ctrl+c"); return TRUE; }