use app define, not relay's

This commit is contained in:
Eric House 2014-11-05 21:45:14 -08:00
parent 68e7f303b0
commit 3d9ee4b9f9

View file

@ -222,7 +222,7 @@ relaycon_receive( GIOChannel* source, GIOCondition condition, gpointer data )
((0 <= nRead)? nRead : 0) );
XP_LOGF( "%s: read %zd bytes ('%s')", __func__, nRead, b64 );
g_free( b64 );
#ifdef LOG_PACKET_MD5SUMS
#ifdef COMMS_CHECKSUM
gchar* sum = g_compute_checksum_for_data( G_CHECKSUM_MD5, buf, nRead );
XP_LOGF( "%s: read %zd bytes ('%s')(sum=%s)", __func__, nRead, b64, sum );
g_free( sum );
@ -349,7 +349,7 @@ sendIt( RelayConStorage* storage, const XP_U8* msgbuf, XP_U16 len )
ssize_t nSent = sendto( storage->socket, msgbuf, len, 0, /* flags */
(struct sockaddr*)&storage->saddr,
sizeof(storage->saddr) );
#ifdef LOG_PACKET_MD5SUMS
#ifdef COMMS_CHECKSUM
gchar* sum = g_compute_checksum_for_data( G_CHECKSUM_MD5, msgbuf, len );
XP_LOGF( "%s: sent %d bytes with sum %s", __func__, len, sum );
g_free( sum );