From: Theodore Tso Date: Tue, 29 Sep 1998 23:26:19 +0000 (+0000) Subject: Don't use h_errno at all; it doesn't work on all platforms (for X-Git-Tag: krb5-1.1-beta1~531 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8e7094c10bd6b3264ee495555775a93def4ac1e3;p=krb5.git Don't use h_errno at all; it doesn't work on all platforms (for example HPUX), and it's just not worth the effort to disambiguate between the different reasons why gethostbyname() might have failed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10948 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/user_user/ChangeLog b/src/appl/user_user/ChangeLog index f9f76b81d..d26f5bbe0 100644 --- a/src/appl/user_user/ChangeLog +++ b/src/appl/user_user/ChangeLog @@ -1,3 +1,10 @@ +Tue Sep 29 18:58:46 1998 Theodore Y. Ts'o + + * client.c (main): Don't use h_errno at all; it doesn't work on + all platforms (for example HPUX), and it's just not worth + the effort to disambiguate between the different reasons + why gethostbyname() might have failed. + 1998-07-05 * client.c (main): do not declare h_errno diff --git a/src/appl/user_user/client.c b/src/appl/user_user/client.c index bd5c8a408..9fb0c7ad0 100644 --- a/src/appl/user_user/client.c +++ b/src/appl/user_user/client.c @@ -83,12 +83,7 @@ char *argv[]; if ((host = gethostbyname (argv[1])) == NULL) { - - - if (h_errno == HOST_NOT_FOUND) - fprintf (stderr, "uu-client: unknown host \"%s\".\n", argv[1]); - else - fprintf (stderr, "uu-client: can't get address of host \"%s\".\n", argv[1]); + fprintf (stderr, "uu-client: can't get address of host \"%s\".\n", argv[1]); return 3; }