diff options
Diffstat (limited to 'nptl/pt-creat.c')
-rw-r--r-- | nptl/pt-creat.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/nptl/pt-creat.c b/nptl/pt-creat.c index bdb5e4f561..f1783f1f60 100644 --- a/nptl/pt-creat.c +++ b/nptl/pt-creat.c @@ -28,15 +28,12 @@ int creat (const char *pathname, mode_t mode) { - int result; - int oldtype; - - CANCEL_ASYNC (oldtype); + int oldtype = CANCEL_ASYNC (); #if defined INLINE_SYSCALL && defined __NR_creat - result = INLINE_SYSCALL (creat, 2, pathname, mode); + int result = INLINE_SYSCALL (creat, 2, pathname, mode); #else - result = __libc_open (pathname, O_WRONLY|O_CREAT|O_TRUNC, mode); + int result = __libc_open (pathname, O_WRONLY|O_CREAT|O_TRUNC, mode); #endif CANCEL_RESET (oldtype); |