]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/unix/sysv/linux/accept4.c
Use glibc_likely instead __builtin_expect.
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / accept4.c
index 0e2113434ab7e36e8f3fe0ff71c71678310a6d9b..019e96b6778a4056d623aa29715a8bb7188379a7 100644 (file)
@@ -52,7 +52,7 @@ static int have_accept4;
 int
 accept4 (int fd, __SOCKADDR_ARG addr, socklen_t *addr_len, int flags)
 {
-  if (__builtin_expect (have_accept4 >= 0, 1))
+  if (__glibc_likely (have_accept4 >= 0))
     {
       int ret = __internal_accept4 (fd, addr, addr_len, flags);
       /* The kernel returns -EINVAL for unknown socket operations.