From a4faf24354ee98ef226a9012f2835cd771380882 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 20 Apr 2003 20:55:53 +0000 Subject: Update. * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Cast first syscall parameter to cnst char*. --- sysdeps/generic/check_fds.c | 2 +- sysdeps/unix/sysv/linux/not-cancel.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/generic/check_fds.c b/sysdeps/generic/check_fds.c index 62df3e5..8a3efd1 100644 --- a/sysdeps/generic/check_fds.c +++ b/sysdeps/generic/check_fds.c @@ -49,7 +49,7 @@ check_one_fd (int fd, int mode) /* Something is wrong with this descriptor, it's probably not opened. Open /dev/null so that the SUID program we are about to start does not accidently use this descriptor. */ - int nullfd = open_not_cancel ((const char *) _PATH_DEVNULL, mode); + int nullfd = open_not_cancel (_PATH_DEVNULL, mode); /* We are very paranoid here. With all means we try to ensure that we are actually opening the /dev/null device and nothing else. diff --git a/sysdeps/unix/sysv/linux/not-cancel.h b/sysdeps/unix/sysv/linux/not-cancel.h index e2cb3b2..cf61cff 100644 --- a/sysdeps/unix/sysv/linux/not-cancel.h +++ b/sysdeps/unix/sysv/linux/not-cancel.h @@ -24,7 +24,7 @@ #ifdef INLINE_SYSCALL # define open_not_cancel(name, flags, mode...) \ ({ int _mode = (0, ##mode); \ - INLINE_SYSCALL (open, 3, name, flags, _mode); }) + INLINE_SYSCALL (open, 3, (const char *) name, flags, _mode); }) #endif /* Uncancelable close. */ -- cgit v1.1