@ -1184,9 +1184,10 @@ bool mosquitto_want_write(struct mosquitto *mosq)
int mosquitto_opts_set(struct mosquitto *mosq, enum mosq_opt_t option, void *value)
{
if(!mosq || !value) return MOSQ_ERR_INVAL;
int ival;
switch(option){
case MOSQ_OPT_PROTOCOL_VERSION:
ival = *((int *)value);
@ -194,10 +194,10 @@ int main(int argc, char *argv[])
FILE *pid;
int listener_max;
int rc;
char err[256];
#ifdef WIN32
SYSTEMTIME st;
#else
struct timeval tv;
#endif
struct mosquitto *ctxt, *ctxt_tmp;