Skip to content

Commit

Permalink
Fix Win build
Browse files Browse the repository at this point in the history
  • Loading branch information
embhorn committed Nov 2, 2023
1 parent af3c144 commit aadaa81
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions examples/pub-sub/mqtt-pub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit aadaa81

Please sign in to comment.