summary refs log tree commit diff
path: root/stdio-common/tmpnam.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/tmpnam.c')
-rw-r--r--stdio-common/tmpnam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/tmpnam.c b/stdio-common/tmpnam.c
index 3d0386269e..d8cd50907f 100644
--- a/stdio-common/tmpnam.c
+++ b/stdio-common/tmpnam.c
@@ -38,7 +38,7 @@ tmpnam (char *s)
 			0))
     return NULL;
 
-  if (__builtin_expect (__gen_tempname (tmpbuf, 0, 0, __GT_NOCREATE), 0))
+  if (__glibc_unlikely (__gen_tempname (tmpbuf, 0, 0, __GT_NOCREATE)))
     return NULL;
 
   if (s == NULL)