Added <stdbool.h> for standard bool definitions
[dockapps/wmnotify.git] / src / network.c
index b46bce7..0863cd8 100644 (file)
@@ -106,7 +106,7 @@ ConnectionEstablish( char *server_name, int port )
   }
 
 #if HAVE_SSL
-  if( wmnotify_infos.use_ssl == TRUE ) {
+  if( wmnotify_infos.use_ssl == true ) {
     int status;
     status = InitSSL( wmnotify_infos.sock_fd );
     if( status != EXIT_SUCCESS ) {
@@ -137,7 +137,7 @@ int
 ConnectionTerminate( void )
 {
 #if HAVE_SSL
-  if( wmnotify_infos.use_ssl == TRUE ) {
+  if( wmnotify_infos.use_ssl == true ) {
     SSL_free( ssl_infos.ssl ); /* release connection state */
   }
 #endif
@@ -145,7 +145,7 @@ ConnectionTerminate( void )
   close( wmnotify_infos.sock_fd ); /* close socket */
 
 #if HAVE_SSL
-  if( wmnotify_infos.use_ssl == TRUE ) {
+  if( wmnotify_infos.use_ssl == true ) {
     SSL_CTX_free( ssl_infos.ctx ); /* release context */
   }
 #endif
@@ -160,7 +160,7 @@ WmnotifySendData( char *buffer, int size )
   int len;
 
 #if HAVE_SSL
-  if( wmnotify_infos.use_ssl == TRUE ) {
+  if( wmnotify_infos.use_ssl == true ) {
     len = SSL_write( ssl_infos.ssl, buffer, size ); /* Encrypt & send message */
     if( len <= 0 ) {
       SSL_get_error( ssl_infos.ssl, len );
@@ -193,7 +193,7 @@ WmnotifyGetResponse( char *buffer, int max_size )
   int len;
 
 #if HAVE_SSL
-  if( wmnotify_infos.use_ssl == TRUE ) {
+  if( wmnotify_infos.use_ssl == true ) {
     len = SSL_read( ssl_infos.ssl, buffer, max_size ); /* Get reply & decrypt. */
     switch( SSL_get_error( ssl_infos.ssl, len ) ) {
     case SSL_ERROR_NONE: