From aa392f1646894a21ab7037709a5e3387cac4bcb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Mon, 22 Mar 2010 16:21:14 +0100 Subject: [PATCH 05/12] Fix warnings related to DEBUG() usage without arguments --- wocky/wocky-openssl.c | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/wocky/wocky-openssl.c b/wocky/wocky-openssl.c index 26ba03c..0cd02be 100644 --- a/wocky/wocky-openssl.c +++ b/wocky/wocky-openssl.c @@ -340,7 +340,7 @@ handshake_write (WockyTLSSession *session) long wsize = BIO_get_mem_data (session->wbio, &wbuf); if (tls_debug_level >= DEBUG_ASYNC_DETAIL_LEVEL) - DEBUG (); + DEBUG (""); g_output_stream_write_async (output, wbuf, wsize, prio, cancel, wocky_tls_session_write_ready, session); @@ -353,7 +353,7 @@ handshake_read (WockyTLSSession *session) WockyTLSJob *handshake = (WockyTLSJob *) &session->job.handshake.job; if (tls_debug_level >= DEBUG_ASYNC_DETAIL_LEVEL) - DEBUG (); + DEBUG (""); g_input_stream_read_async (input, &(handshake->rbuf), @@ -376,7 +376,7 @@ ssl_handshake (WockyTLSSession *session) gboolean fatal = FALSE; if (tls_debug_level >= DEBUG_ASYNC_DETAIL_LEVEL) - DEBUG (); + DEBUG (""); if (!done) { @@ -473,7 +473,7 @@ ssl_fill (WockyTLSSession *session) GCancellable *cancel = session->job.read.cancellable; if (tls_debug_level >= DEBUG_ASYNC_DETAIL_LEVEL) - DEBUG (); + DEBUG (""); g_input_stream_read_async (input, rbuf, MAX_SSLV3_BLOCK_SIZE, prio, cancel, wocky_tls_session_read_ready, session); @@ -489,7 +489,7 @@ ssl_flush (WockyTLSSession *session) GCancellable *cancel = session->job.read.cancellable; if (tls_debug_level >= DEBUG_ASYNC_DETAIL_LEVEL) - DEBUG (); + DEBUG (""); wsize = BIO_get_mem_data (session->wbio, &wbuf); @@ -775,7 +775,7 @@ wocky_tls_session_handshake_async (WockyTLSSession *session, GAsyncReadyCallback callback, gpointer user_data) { - DEBUG (); + DEBUG (""); wocky_tls_job_start (&session->job.handshake.job, session, io_priority, cancellable, callback, user_data, wocky_tls_session_handshake_async); @@ -788,7 +788,7 @@ wocky_tls_session_handshake_finish (WockyTLSSession *session, GError **error) { GSimpleAsyncResult *simple = G_SIMPLE_ASYNC_RESULT (result); - DEBUG (); + DEBUG (""); { GObject *source_object; @@ -934,7 +934,7 @@ wocky_tls_session_verify_peer (WockyTLSSession *session, X509 *cert; gboolean lenient = (level == WOCKY_TLS_VERIFY_LENIENT); - DEBUG (); + DEBUG (""); g_assert (status != NULL); *status = WOCKY_TLS_CERT_OK; @@ -1085,7 +1085,7 @@ wocky_tls_input_stream_read_async (GInputStream *stream, int ret; if (tls_debug_level >= DEBUG_ASYNC_DETAIL_LEVEL) - DEBUG (); + DEBUG (""); g_assert (session->job.read.active == FALSE); @@ -1137,7 +1137,7 @@ wocky_tls_input_stream_read_finish (GInputStream *stream, GSimpleAsyncResult *simple = G_SIMPLE_ASYNC_RESULT (result); if (tls_debug_level >= DEBUG_ASYNC_DETAIL_LEVEL) - DEBUG (); + DEBUG (""); g_return_val_if_fail (g_simple_async_result_is_valid (result, G_OBJECT (stream), wocky_tls_input_stream_read_async), -1); @@ -1217,7 +1217,7 @@ wocky_tls_output_stream_write_finish (GOutputStream *stream, GSimpleAsyncResult *simple = G_SIMPLE_ASYNC_RESULT (result); if (tls_debug_level >= DEBUG_ASYNC_DETAIL_LEVEL) - DEBUG (); + DEBUG (""); { GObject *source_object; @@ -1375,7 +1375,7 @@ wocky_tls_session_read_ready (GObject *object, session->job.handshake.job.rbuf : session->job.read.rbuf; if (tls_debug_level >= DEBUG_ASYNC_DETAIL_LEVEL) - DEBUG (); + DEBUG (""); rsize = g_input_stream_read_finish (input, result, error); @@ -1439,7 +1439,7 @@ wocky_tls_session_write_ready (GObject *object, gssize written; if (tls_debug_level >= DEBUG_ASYNC_DETAIL_LEVEL) - DEBUG (); + DEBUG (""); written = g_output_stream_write_finish (G_OUTPUT_STREAM (object), result, &(session->job.write.error)); -- 1.6.4.msysgit.0