mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
fix release build
This commit is contained in:
parent
fbd45b6a03
commit
131826d34f
3 changed files with 10 additions and 3 deletions
|
@ -55,7 +55,10 @@ passTAPToAndroid( AndTransportProcs* aprocs, JNIEnv* env, jobject jtap )
|
|||
{
|
||||
const char* sig = "(L" PKG_PATH("jni/XwJNI$TopicsAndPackets") ";)I";
|
||||
jmethodID mid = getMethodID( env, aprocs->jxport, "transportSendMQTT", sig );
|
||||
XP_S16 tmp = (*env)->CallIntMethod( env, aprocs->jxport, mid, jtap );
|
||||
#ifdef DEBUG
|
||||
XP_S16 tmp =
|
||||
#endif
|
||||
(*env)->CallIntMethod( env, aprocs->jxport, mid, jtap );
|
||||
XP_LOGFF( "%s() => %d", sig, tmp );
|
||||
deleteLocalRef( env, jtap );
|
||||
LOG_RETURN_VOID();
|
||||
|
|
|
@ -335,6 +335,7 @@ static void logAddrComms( const CommsCtxt* comms, const CommsAddrRec* addr,
|
|||
# define printQueue( comms )
|
||||
# define logAddr( comms, addr, caller)
|
||||
# define listRecs( comms, caller )
|
||||
# define logAddrComms(comms, addr, caller)
|
||||
#endif /* def DEBUG */
|
||||
|
||||
#if defined RELAY_HEARTBEAT || defined COMMS_HEARTBEAT
|
||||
|
|
|
@ -52,8 +52,11 @@ sendQueueHead( MQTTConStorage* storage )
|
|||
for ( GSList* iter = storage->queue; !!iter; iter = iter->next ) {
|
||||
QElem* elem = (QElem*)iter->data;
|
||||
if ( 0 == elem->mid ) {
|
||||
int err = mosquitto_publish( storage->mosq, &elem->mid, elem->topic,
|
||||
elem->len, elem->buf, DEFAULT_QOS, true );
|
||||
#ifdef DEBUG
|
||||
int err =
|
||||
#endif
|
||||
mosquitto_publish( storage->mosq, &elem->mid, elem->topic,
|
||||
elem->len, elem->buf, DEFAULT_QOS, true );
|
||||
XP_LOGFF( "mosquitto_publish(topic=%s, len=%d) => %s; mid=%d", elem->topic,
|
||||
elem->len, mosquitto_strerror(err), elem->mid );
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue