[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.39 and 1.40

version 1.39, 2005/01/14 20:58:43 version 1.40, 2005/02/04 18:16:40
Line 279 
Line 279 
                 return (-1);                  return (-1);
         }          }
   
 #if 0  
         root->cr_srverr = fdopen(errfd[0], "r");  
         if (root->cr_srverr == NULL) {  
                 cvs_log(LP_ERR, "failed to create pipe stream");  
                 return (-1);  
         }  
 #endif  
   
         /* make the streams line-buffered */          /* make the streams line-buffered */
         (void)setvbuf(root->cr_srvin, NULL, _IOLBF, 0);          (void)setvbuf(root->cr_srvin, NULL, _IOLBF, 0);
         (void)setvbuf(root->cr_srvout, NULL, _IOLBF, 0);          (void)setvbuf(root->cr_srvout, NULL, _IOLBF, 0);
Line 298 
Line 290 
          * requests.           * requests.
          */           */
   
         vresp = cvs_resp_getvalid();          if ((vresp = cvs_resp_getvalid()) == NULL) {
         if (vresp == NULL) {  
                 cvs_log(LP_ERR, "can't generate list of valid responses");                  cvs_log(LP_ERR, "can't generate list of valid responses");
                 return (-1);                  return (-1);
         }          }
   
         if (cvs_sendreq(root, CVS_REQ_VALIDRESP, vresp) < 0) {          if (cvs_sendreq(root, CVS_REQ_VALIDRESP, vresp) < 0) {
                   cvs_log(LP_ERR, "failed to get valid responses");
                   free(vresp);
                   return (-1);
         }          }
         free(vresp);          free(vresp);
   
Line 313 
Line 307 
                 return (-1);                  return (-1);
         }          }
   
           /* don't fail if this request doesn't work */
         if (cvs_sendreq(root, CVS_REQ_VERSION, NULL) < 0)          if (cvs_sendreq(root, CVS_REQ_VERSION, NULL) < 0)
                 cvs_log(LP_ERR, "failed to get remote version");                  cvs_log(LP_WARN, "failed to get remote version");
   
         /* now share our global options with the server */          /* now share our global options with the server */
         if (verbosity == 1)          if ((verbosity == 1) &&
                 cvs_sendreq(root, CVS_REQ_GLOBALOPT, "-q");              (cvs_sendreq(root, CVS_REQ_GLOBALOPT, "-q") < 0))
         else if (verbosity == 0)                  return (-1);
                 cvs_sendreq(root, CVS_REQ_GLOBALOPT, "-Q");          else if ((verbosity == 0) &&
               (cvs_sendreq(root, CVS_REQ_GLOBALOPT, "-Q") < 0))
                   return (-1);
   
         if (cvs_nolog)          if (cvs_nolog && (cvs_sendreq(root, CVS_REQ_GLOBALOPT, "-l") < 0))
                 cvs_sendreq(root, CVS_REQ_GLOBALOPT, "-l");                  return (-1);
         if (cvs_readonly)          if (cvs_readonly && (cvs_sendreq(root, CVS_REQ_GLOBALOPT, "-r") < 0))
                 cvs_sendreq(root, CVS_REQ_GLOBALOPT, "-r");                  return (-1);
         if (cvs_trace)          if (cvs_trace && (cvs_sendreq(root, CVS_REQ_GLOBALOPT, "-t") < 0))
                 cvs_sendreq(root, CVS_REQ_GLOBALOPT, "-t");                  return (-1);
   
         /* now send the CVSROOT to the server unless it's an init */          /* now send the CVSROOT to the server unless it's an init */
         if ((cvs_cmdop != CVS_OP_INIT) &&          if ((cvs_cmdop != CVS_OP_INIT) &&
Line 337 
Line 334 
         /* not sure why, but we have to send this */          /* not sure why, but we have to send this */
         if (cvs_sendreq(root, CVS_REQ_USEUNCHANGED, NULL) < 0)          if (cvs_sendreq(root, CVS_REQ_USEUNCHANGED, NULL) < 0)
                 return (-1);                  return (-1);
   
 #ifdef CVS_ZLIB  
         /* if compression was requested, initialize it */  
 #endif  
   
         cvs_log(LP_DEBUG, "connected to %s", root->cr_host);          cvs_log(LP_DEBUG, "connected to %s", root->cr_host);
   

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40