Added <stdbool.h> for standard bool definitions
[dockapps/wmnotify.git] / src / pop3.c
index d9da74f..eed0f09 100644 (file)
@@ -23,8 +23,9 @@
 #include "pop3.h"
 
 
-static char tx_buffer[POP3_IN_BUF_SIZE];
-static char rx_buffer[POP3_IN_BUF_SIZE];
+/* Defined in network.c */
+extern char tx_buffer[WMNOTIFY_BUFSIZE + 1];
+extern char rx_buffer[WMNOTIFY_BUFSIZE + 1];
 
 
 static int
@@ -32,7 +33,7 @@ POP3_ReceiveResponse( void )
 {
   int len;
   
-  len = WmnotifyGetResponse( rx_buffer, POP3_IN_BUF_SIZE );
+  len = WmnotifyGetResponse( rx_buffer, WMNOTIFY_BUFSIZE );
   if( len < 0 ) {
     perror( PACKAGE );
     ErrorLocation( __FILE__, __LINE__ );
@@ -50,7 +51,7 @@ POP3_ReceiveResponse( void )
   /* Check the status indicator returned by the POP3 server.
      There are currently two status indicators: positive ("+OK") and negative
      ("-ERR"). Servers MUST send the status indicators in upper case. */
-  if( STREQ_LEN( rx_buffer, POP3_RSP_SUCCESS, strlen(POP3_RSP_SUCCESS) ) == FALSE ) {
+  if( STREQ_LEN( rx_buffer, POP3_RSP_SUCCESS, strlen(POP3_RSP_SUCCESS) ) == false ) {
     fprintf( stderr, "%s: Error, POP3 server responded:\n  \"%s\"\n", PACKAGE, rx_buffer );
     len = -1;
   }