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

Diff of /monit/protocols/nntp.c

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

revision 1.15 by hauk, Sun Dec 12 23:45:09 2004 UTC revision 1.16 by hauk, Sun Dec 19 00:31:51 2004 UTC
# Line 56  int check_nntp(Socket_T s) { Line 56  int check_nntp(Socket_T s) {
56      return FALSE;      return FALSE;
57    }    }
58    
59    Util_chomp(buf, STRLEN);    Util_chomp(buf);
60        
   /* RATS: ignore */ /* Util_chomp does zero termination */  
61    sscanf(buf, "%d %s", &status, msg);    sscanf(buf, "%d %s", &status, msg);
62    if(status != 200) {    if(status != 200) {
63      log("NNTP error: %s\n", buf);      log("NNTP error: %s\n", buf);
# Line 75  int check_nntp(Socket_T s) { Line 74  int check_nntp(Socket_T s) {
74      return FALSE;      return FALSE;
75    }    }
76    
77    Util_chomp(buf, STRLEN);    Util_chomp(buf);
78      
   /* RATS: ignore */ /* Util_chomp does zero termination */  
79    sscanf(buf, "%d %s", &status, msg);    sscanf(buf, "%d %s", &status, msg);
80    if(status != 205) {    if(status != 205) {
81      log("NNTP error: %s\n", buf);      log("NNTP error: %s\n", buf);

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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