[PATCH] socket: Do not use AF_NETLINK in __opensock

Andreas Schwab schwab@linux-m68k.org
Wed Nov 17 15:40:08 GMT 2021


On Nov 17 2021, Florian Weimer via Libc-alpha wrote:

> diff --git a/socket/opensock.c b/socket/opensock.c
> index ff94d27a61..cf4731abf1 100644
> --- a/socket/opensock.c
> +++ b/socket/opensock.c
> @@ -29,12 +29,6 @@ __opensock (void)
>    int type = SOCK_DGRAM | SOCK_CLOEXEC;
>    int fd;
>  
> -#ifdef AF_NETLINK
> -  fd = __socket (AF_NETLINK, type, 0);
> -  if (fd >= 0)
> -    return fd;
> -#endif

The comment is now outdated.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Libc-alpha mailing list