From 61f06bd3ba0a5c95ca7261cacb13025fa30f10f4 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 10 May 2012 15:54:27 -0700 Subject: Hurd: fix mode type for openat --- sysdeps/mach/hurd/openat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/mach/hurd/openat.c b/sysdeps/mach/hurd/openat.c index 69d257c181..c6fcf49d8b 100644 --- a/sysdeps/mach/hurd/openat.c +++ b/sysdeps/mach/hurd/openat.c @@ -1,5 +1,5 @@ /* openat -- Open a file named relative to an open directory. Hurd version. - Copyright (C) 2006 Free Software Foundation, Inc. + Copyright (C) 2006-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -34,14 +34,14 @@ __openat (fd, file, oflag) const char *file; int oflag; { - int mode; + mode_t mode; io_t port; if (oflag & O_CREAT) { va_list arg; va_start (arg, oflag); - mode = va_arg (arg, int); + mode = va_arg (arg, mode_t); va_end (arg); } else -- cgit 1.4.1