/[monit]/monit/protocols/pop.c
ViewVC logotype

Diff of /monit/protocols/pop.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by martinp, Thu Jan 6 20:51:50 2005 UTC revision 1.18 by hauk, Wed Oct 19 00:50:38 2005 UTC
# Line 54  int check_pop(Socket_T s) { Line 54  int check_pop(Socket_T s) {
54    
55    ASSERT(s);    ASSERT(s);
56        
57    if(socket_read(s, buf, sizeof(buf)) <= 0) {    if(!socket_readln(s, buf, sizeof(buf))) {
58      log("POP: error receiving data -- %s\n", STRERROR);      log("POP: error receiving data -- %s\n", STRERROR);
59      return FALSE;      return FALSE;
60    }    }
# Line 71  int check_pop(Socket_T s) { Line 71  int check_pop(Socket_T s) {
71      return FALSE;      return FALSE;
72    }    }
73    
74    if(socket_read(s, buf, sizeof(buf)) <= 0) {    if(!socket_readln(s, buf, sizeof(buf))) {
75      log("POP: error receiving data -- %s\n", STRERROR);      log("POP: error receiving data -- %s\n", STRERROR);
76      return FALSE;      return FALSE;
77    }    }

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26