From 4f838e51611b9a71f2e3e98e6fddd02a5c1b4c03 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Wed, 28 Feb 2018 15:53:24 +0000 Subject: [PATCH] Windows fixes. --- src/conf.c | 2 +- src/mosquitto_passwd.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index eef681f4..25d80a6d 100644 --- a/src/conf.c +++ b/src/conf.c @@ -1108,7 +1108,7 @@ int _config_read_file_core(struct mqtt3_config *config, bool reload, const char snprintf(conf_file, len, "%s\\%s", token, find_data.cFileName); conf_file[len] = '\0'; - rc = _config_read_file(config, reload, conf_file, cr, level+1, &lineno_ext, buf, buflen); + rc = _config_read_file(config, reload, conf_file, cr, level+1, &lineno_ext); if(rc){ FindClose(fh); _mosquitto_log_printf(NULL, MOSQ_LOG_ERR, "Error found at %s:%d.", conf_file, lineno_ext); diff --git a/src/mosquitto_passwd.c b/src/mosquitto_passwd.c index 55780a65..7dac2549 100644 --- a/src/mosquitto_passwd.c +++ b/src/mosquitto_passwd.c @@ -24,6 +24,7 @@ Contributors: #include #include #ifdef WIN32 +# include # include # ifndef __cplusplus # define bool char