@@ -193,7 +193,7 @@ static void md_zeromq_handle_gps(struct md_writer_zeromq *mwz,
193193 json_object_to_json_string_ext (gps_obj , JSON_C_TO_STRING_PLAIN ));
194194
195195 if (retval < sizeof (topic )) {
196- zmq_send (mwz , topic , strlen (topic ), 0 );
196+ zmq_send (mwz -> zmq_publisher , topic , strlen (topic ), 0 );
197197 }
198198 json_object_put (gps_obj );
199199}
@@ -217,7 +217,7 @@ static void md_zeromq_handle_munin(struct md_writer_zeromq *mwz,
217217 mwz -> topics [MD_ZMQ_TOPIC_SENSOR ],
218218 key , json_object_to_json_string_ext (val , JSON_C_TO_STRING_PLAIN ));
219219 if (retval < sizeof (topic )) {
220- zmq_send (mwz , topic , strlen (topic ), 0 );
220+ zmq_send (mwz -> zmq_publisher , topic , strlen (topic ), 0 );
221221 }
222222 }
223223}
@@ -237,7 +237,7 @@ static void md_zeromq_handle_sysevent(struct md_writer_zeromq *mwz,
237237 json_object_to_json_string_ext (mge -> json_blob ,
238238 JSON_C_TO_STRING_PLAIN ));
239239 if (retval < sizeof (topic )) {
240- zmq_send (mwz , topic , strlen (topic ), 0 );
240+ zmq_send (mwz -> zmq_publisher , topic , strlen (topic ), 0 );
241241 }
242242}
243243
@@ -326,7 +326,7 @@ static void md_zeromq_handle_conn(struct md_writer_zeromq *mwz,
326326 json_object_to_json_string_ext (json_obj , JSON_C_TO_STRING_PLAIN ));
327327
328328 if (retval < sizeof (topic ))
329- zmq_send (mwz , topic , strlen (topic ), 0 );
329+ zmq_send (mwz -> zmq_publisher , topic , strlen (topic ), 0 );
330330
331331 json_object_put (json_obj );
332332}
@@ -544,7 +544,7 @@ static void md_zeromq_handle_iface(struct md_writer_zeromq *mwz,
544544 return ;
545545 }
546546
547- zmq_send (mwz , topic , strlen (topic ), 0 );
547+ zmq_send (mwz -> zmq_publisher , topic , strlen (topic ), 0 );
548548 json_object_put (json_obj );
549549}
550550
0 commit comments