Message ID | 87ilwq6bu1.fsf@oldenburg.str.redhat.com |
---|---|
State | New |
Headers | show |
Series | socket: Do not use AF_NETLINK in __opensock | expand |
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.
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 - fd = __socket (AF_UNIX, type, 0); if (fd >= 0) return fd;