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

Diff for /src/usr.bin/cvs/Attic/req.c between version 1.3 and 1.4

version 1.3, 2004/08/04 13:03:52 version 1.4, 2004/08/04 13:55:24
Line 56 
Line 56 
   
   
 static int  cvs_req_root       (int, char *);  static int  cvs_req_root       (int, char *);
   static int  cvs_req_validreq   (int, char *);
   static int  cvs_req_validresp  (int, char *);
 static int  cvs_req_directory  (int, char *);  static int  cvs_req_directory  (int, char *);
 static int  cvs_req_argument   (int, char *);  static int  cvs_req_argument   (int, char *);
 static int  cvs_req_globalopt  (int, char *);  static int  cvs_req_globalopt  (int, char *);
Line 67 
Line 69 
 } cvs_req_swtab[CVS_REQ_MAX + 1] = {  } cvs_req_swtab[CVS_REQ_MAX + 1] = {
         { NULL               },          { NULL               },
         { cvs_req_root       },          { cvs_req_root       },
         { NULL               },          { cvs_req_validreq   },
         { NULL               },          { cvs_req_validresp  },
         { cvs_req_directory  },          { cvs_req_directory  },
         { NULL               },          { NULL               },
         { NULL               },          { NULL               },
Line 187 
Line 189 
 cvs_req_root(int reqid, char *line)  cvs_req_root(int reqid, char *line)
 {  {
   
           return (0);
   }
   
   
   static int
   cvs_req_validreq(int reqid, char *line)
   {
           char *vreq;
   
           vreq = cvs_req_getvalid();
           if (vreq == NULL)
                   return (-1);
   
           cvs_sendresp(CVS_RESP_VALIDREQ, vreq);
   
           return (0);
   }
   
   static int
   cvs_req_validresp(int reqid, char *line)
   {
           char *sp, *ep;
           struct cvs_resp *resp;
   
           sp = line;
           do {
                   ep = strchr(sp, ' ');
                   if (ep != NULL)
                           *(ep++) = '\0';
   
                   resp = cvs_resp_getbyname(sp);
                   if (resp != NULL)
                           ;
   
                   if (ep != NULL)
                           sp = ep + 1;
           } while (ep != NULL);
   
         return (0);          return (0);
 }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4