[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.43 and 1.44

version 1.43, 2006/03/28 07:17:17 version 1.44, 2006/04/14 02:45:35
Line 500 
Line 500 
 static int  static int
 cvs_req_globalopt(int reqid, char *line)  cvs_req_globalopt(int reqid, char *line)
 {  {
         if ((*line != '-') || (*(line + 2) != '\0'))          if (*line != '-' || *(line + 2) != '\0')
                 fatal("invalid `Global_option' request format");                  fatal("invalid `Global_option' request format");
   
         switch (*(line + 1)) {          switch (*(line + 1)) {
Line 546 
Line 546 
         long val;          long val;
   
         val = strtol(line, &ep, 10);          val = strtol(line, &ep, 10);
         if ((line[0] == '\0') || (*ep != '\0'))          if (line[0] == '\0' || *ep != '\0')
                 fatal("invalid Gzip-stream level `%s'", line);                  fatal("invalid Gzip-stream level `%s'", line);
         else if ((errno == ERANGE) && ((val < 0) || (val > 9)))          else if (errno == ERANGE && (val < 0 || val > 9))
                 fatal("Gzip-stream level %ld out of range", val);                  fatal("Gzip-stream level %ld out of range", val);
   
         cvs_compress = (int)val;          cvs_compress = (int)val;

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44