version 1.11, 2006/01/23 17:29:22 |
version 1.12, 2007/05/01 01:26:12 |
|
|
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) |
|
|
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"); |