(copy, atopi, same): Remove, use strcpy(), atoi(), strcmp(). Callers

changed.  Remove empty source files.
This commit is contained in:
Markus Armbruster 2004-01-08 10:20:44 +00:00
parent 9c90022634
commit d0feb8570a
11 changed files with 11 additions and 311 deletions

View file

@ -90,7 +90,7 @@ chan(void)
return RET_SYN;
p[sizeof(us->nat_cnam) - 1] = 0;
for (cn = 0; NULL != (natp = getnatp(cn)); cn++) {
if (same(p, natp->nat_cnam)) {
if (!strcmp(p, natp->nat_cnam)) {
pr("Country #%d is already called `%s'!\n", cn, p);
return RET_FAIL;
}

View file

@ -128,8 +128,8 @@ do_treaty(void)
cp = getstring("Proposed treaty duration? (days) ", buf);
if (cp == 0)
return RET_FAIL;
j = atopi(cp);
if (j == 0) {
j = atoi(cp);
if (j <= 0) {
pr("Bad treaty duration.\n");
return RET_SYN;
}