From 0097a85ce0175613e9a2403fbfbf4c46af3029d2 Mon Sep 17 00:00:00 2001 From: raspopov Date: Fri, 30 Oct 2020 17:42:23 +0300 Subject: [PATCH] Something bad happened with a "timeout" parameter of mosquitto_loop() function in 4f61f6c16112eacfdb397be12b93b32c39f2e30c. Reverted. Signed-off-by: raspopov --- lib/loop.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/loop.c b/lib/loop.c index fd3a98cd..d9f207f8 100644 --- a/lib/loop.c +++ b/lib/loop.c @@ -34,7 +34,7 @@ Contributors: #define HAVE_PSELECT #endif -int mosquitto_loop(struct mosquitto *mosq, int timeout_input, int max_packets) +int mosquitto_loop(struct mosquitto *mosq, int timeout, int max_packets) { #ifdef HAVE_PSELECT struct timespec local_timeout; @@ -50,10 +50,6 @@ int mosquitto_loop(struct mosquitto *mosq, int timeout_input, int max_packets) #ifdef WITH_SRV int state; #endif - time_t timeout; - - UNUSED(timeout_input); - if(!mosq || max_packets < 1) return MOSQ_ERR_INVAL; #ifndef WIN32