[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.7 and 1.8

version 1.7, 2004/12/07 17:10:56 version 1.8, 2004/12/19 17:32:55
Line 62 
Line 62 
 static int  cvs_req_case       (int, char *);  static int  cvs_req_case       (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 *);
   static int  cvs_req_gzipstream (int, char *);
 static int  cvs_req_version    (int, char *);  static int  cvs_req_version    (int, char *);
   
   
Line 91 
Line 92 
         { cvs_req_argument   }, /* 20 */          { cvs_req_argument   }, /* 20 */
         { cvs_req_argument   },          { cvs_req_argument   },
         { cvs_req_globalopt  },          { cvs_req_globalopt  },
           { cvs_req_gzipstream },
         { NULL               },          { NULL               },
         { NULL               },          { NULL               },
         { NULL               },          { NULL               },
         { NULL               },          { NULL               },
         { NULL               },          { NULL               },
         { NULL               },          { NULL               },
         { NULL               },  
         { NULL               }, /* 30 */          { NULL               }, /* 30 */
         { NULL               },          { NULL               },
         { NULL               },          { NULL               },
Line 315 
Line 316 
                 cvs_log(LP_ERR, "unknown global option `%s'", line);                  cvs_log(LP_ERR, "unknown global option `%s'", line);
                 return (-1);                  return (-1);
         }          }
   
           return (0);
   }
   
   
   /*
    * cvs_req_gzipstream()
    *
    * Handler for the `Gzip-stream' request, which enables compression at the
    * level given along with the request.  After this request has been processed,
    * all further connection data should be compressed.
    */
   
   static int
   cvs_req_gzipstream(int reqid, char *line)
   {
           char *ep;
           long val;
   
           val = strtol(line, &ep, 10);
           if ((line[0] == '\0') || (*ep != '\0')) {
                   cvs_log(LP_ERR, "invalid Gzip-stream level `%s'", line);
                   return (-1);
           } else if ((errno == ERANGE) && ((val < 0) || (val > 9))) {
                   cvs_log(LP_ERR, "Gzip-stream level %ld out of range", val);
                   return (-1);
           }
   
           cvs_compress = (int)val;
   
         return (0);          return (0);
 }  }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8