version 1.57, 2015/04/01 20:24:12 |
version 1.58, 2015/04/01 20:28:04 |
|
|
|
|
if (second) { |
if (second) { |
errno = 0; |
errno = 0; |
ks->f2 = (size_t) strtoul(f, NULL, 10); |
ks->f2 = (size_t)strtoul(f, NULL, 10); |
if (errno != 0) |
if (errno != 0) |
err(2, "-k"); |
goto end; |
if (ks->f2 == 0) { |
if (ks->f2 == 0) { |
warn("0 field in key specs"); |
warn("0 field in key specs"); |
goto end; |
goto end; |
} |
} |
} else { |
} else { |
errno = 0; |
errno = 0; |
ks->f1 = (size_t) strtoul(f, NULL, 10); |
ks->f1 = (size_t)strtoul(f, NULL, 10); |
if (errno != 0) |
if (errno != 0) |
err(2, "-k"); |
goto end; |
if (ks->f1 == 0) { |
if (ks->f1 == 0) { |
warn("0 field in key specs"); |
warn("0 field in key specs"); |
goto end; |
goto end; |
|
|
|
|
if (second) { |
if (second) { |
errno = 0; |
errno = 0; |
ks->c2 = (size_t) strtoul(c, NULL, 10); |
ks->c2 = (size_t)strtoul(c, NULL, 10); |
if (errno != 0) |
if (errno != 0) |
err(2, "-k"); |
goto end; |
} else { |
} else { |
errno = 0; |
errno = 0; |
ks->c1 = (size_t) strtoul(c, NULL, 10); |
ks->c1 = (size_t)strtoul(c, NULL, 10); |
if (errno != 0) |
if (errno != 0) |
err(2, "-k"); |
goto end; |
if (ks->c1 == 0) { |
if (ks->c1 == 0) { |
warn("0 column in key specs"); |
warn("0 column in key specs"); |
goto end; |
goto end; |