Replaced herror' by hstrerror'.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@639 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-08-08 13:26:51 +00:00
parent 27ad1c041c
commit 04ca51f2c1

View File

@@ -2228,7 +2228,7 @@ int tn(int argc, char **argv)
srp = 0;
temp = sourceroute(hostp, &srp, &srlen);
if (temp == 0) {
herror(srp);
fprintf (stderr, "%s: %s\n", srp ? srp : "", hstrerror(h_errno));
setuid(getuid());
return 0;
} else if (temp == -1) {
@@ -2261,7 +2261,8 @@ int tn(int argc, char **argv)
_hostname[sizeof(_hostname)-1] = '\0';
hostname = _hostname;
} else {
herror(hostp);
fprintf (stderr, "%s: %s\n", hostp ? hostp : "",
hstrerror(h_errno));
setuid(getuid());
return 0;
}