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

Diff for /src/usr.bin/cdio/cddb.c between version 1.11 and 1.12

version 1.11, 2006/01/23 17:29:22 version 1.12, 2007/05/01 01:26:12
Line 248 
Line 248 
         char *line;          char *line;
         char **result = NULL;          char **result = NULL;
         int i;          int i;
           const char *errstr;
   
         s = parse_connect_to(host_port, "cddb");          s = parse_connect_to(host_port, "cddb");
         if (s == -1)          if (s == -1)
Line 293 
Line 294 
                 goto end;                  goto end;
         }          }
         if (strcmp(line, "211") == 0 || strcmp(line, "212") == 0) {          if (strcmp(line, "211") == 0 || strcmp(line, "212") == 0) {
                 int number = atoi(arg);                  int number = strtonum(arg, 0, INT_MAX, &errstr);
                   if (errstr != NULL)
                           errx(1, "%s: %s", errstr, arg);
                 if (number == 0) {                  if (number == 0) {
                         if (strcmp(line, "211") == 0)                          if (strcmp(line, "211") == 0)
                                 printf("cddb: multiple matches\n");                                  printf("cddb: multiple matches\n");

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12