Some small cleanup

This commit is contained in:
Ian Craggs 2017-03-28 23:22:15 +01:00
parent 1f02409c7c
commit 5571f9b1cd
3 changed files with 4 additions and 18 deletions

10
test.py
View File

@ -1,10 +0,0 @@
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

View 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)

View File

@ -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)