[BACK]Return to proto.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/Attic/proto.c between version 1.85 and 1.86

version 1.85, 2006/01/02 08:11:56 version 1.86, 2006/01/02 17:38:17
Line 731 
Line 731 
 }  }
   
   
 #ifdef notyet  
 /*  
  * cvs_getreq()  
  *  
  * Get a request from the client.  
  */  
 int  
 cvs_getreq(void)  
 {  
         int nbcmd;  
   
         nbcmd = 0;  
   
         do {  
                 /* wait for incoming data */  
                 if (fgets(cvs_proto_buf, (int)sizeof(cvs_proto_buf),  
                     stdin) == NULL) {  
                         if (feof(stdin))  
                                 return (0);  
                         cvs_log(LP_ERRNO,  
                             "failed to read request from client");  
                         return (-1);  
                 }  
   
                 if ((len = strlen(cvs_proto_buf)) != 0) {  
                         if (cvs_proto_buf[len - 1] != '\n') {  
                                 /* truncated line */  
                         } else  
                                 cvs_proto_buf[--len] = '\0';  
                 }  
   
                 ret = cvs_resp_handle(cvs_proto_buf);  
         } while (ret == 0);  
 }  
 #endif  
   
   
 /*  /*
  * cvs_sendln()   * cvs_sendln()
  *   *

Legend:
Removed from v.1.85  
changed lines
  Added in v.1.86