mirror of https://github.com/eclipse/paho.mqtt.c
Some small cleanup
This commit is contained in:
parent
1f02409c7c
commit
5571f9b1cd
10
test.py
10
test.py
|
|
@ -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
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue