Sun Jun 23 19:42:05 1996 Ulrich Drepper <drepper@cygnus.com>
[kopensolaris-gnu/glibc.git] / resolv / inet_pton.c
index cfc069d..d0d45ae 100644 (file)
@@ -59,7 +59,7 @@ inet_pton(af, src, dst)
        case AF_INET6:
                return (inet_pton6(src, dst));
        default:
-               errno = EINVAL;
+               errno = EAFNOSUPPORT;
                return (-1);
        }
        /* NOTREACHED */