Commit 5571f9b1 authored by Ian Craggs's avatar Ian Craggs

Some small cleanup

parent 1f02409c
from __future__ import print_function
print("this is the test Python program")
import socket, sys, select, traceback, datetime, os
import SocketServer as socketserver
# Trace MQTT traffic
import MQTTV3112 as MQTTV3
\ No newline at end of file
......@@ -30,9 +30,9 @@
#define snprintf _snprintf
#define setenv(a, b, c) _putenv_s(a, b)
#else
#include <sys/time.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <unistd.h>
#include <unistd.h>
#include <errno.h>
#endif
......@@ -276,7 +276,6 @@ void MyLog(int LOGA_level, char* format, ...)
printf("%s\n", msg_buf);
fflush(stdout);
}
#endif
#if defined(WIN32) || defined(_WINDOWS)
......
......@@ -162,10 +162,7 @@ void getopts(int argc, char** argv)
}
}
#if 0
#include <logaX.h> /* For general log messages */
#define MyLog logaLine
#else
#define LOGA_DEBUG 0
#define LOGA_INFO 1
#include <stdarg.h>
......@@ -196,7 +193,7 @@ void MyLog(int LOGA_level, char* format, ...)
printf("%s\n", msg_buf);
fflush(stdout);
}
#endif
#if defined(WIN32) || defined(_WINDOWS)
#define mqsleep(A) Sleep(1000*A)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment