mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Use glibc_likely instead __builtin_expect.
This commit is contained in:
@@ -70,7 +70,7 @@ __xmknodat (int vers, int fd, const char *file, mode_t mode, dev_t *dev)
|
||||
if (fd != AT_FDCWD && file[0] != '/')
|
||||
{
|
||||
size_t filelen = strlen (file);
|
||||
if (__builtin_expect (filelen == 0, 0))
|
||||
if (__glibc_unlikely (filelen == 0))
|
||||
{
|
||||
__set_errno (ENOENT);
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user