diff options
author | Christopher Faylor <me@cgf.cx> | 2003-02-10 22:43:29 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-02-10 22:43:29 +0000 |
commit | 407b8df695d94e88aa686d3ad84b0d6ccd363739 (patch) | |
tree | 2c1521fddf3a95c954419279a4330c4b5be3cf92 /winsup/cygwin/syscalls.cc | |
parent | eff24ab9c5e61bc5e29df2a82f7f941ac9ce6927 (diff) | |
download | cygnal-407b8df695d94e88aa686d3ad84b0d6ccd363739.tar.gz cygnal-407b8df695d94e88aa686d3ad84b0d6ccd363739.tar.bz2 cygnal-407b8df695d94e88aa686d3ad84b0d6ccd363739.zip |
* include/cygwin/in.h (in_attr_t): Define new type.
* include/arpa/inet.h (inet_addr): Change return type to in_addr_t.
(inet_lnaof): Ditto.
(inet_netof): Ditto.
(inet_network): Ditto.
* include/cygwin/types.h: Move many *_t typedefs here. Protect them with
ifdefs.
* fhandler_disk_file.cc (fhandler_disk_file::fstat): Change ntsec_atts to
mode_t.
* security.cc (get_attribute_from_acl): Accept mode_t attribute.
(get_nt_attribute): Ditto.
(get_file_attribute): Ditto.
(get_nt_object_attribute): Ditto.
(get_object_attribute): Ditto.
* security.h: Reflect above changes.
* syscalls.cc (chown_worker): Change attrib to mode_t.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index cf16433e1..59bb53146 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -803,12 +803,12 @@ chown_worker (const char *name, unsigned fmode, __uid32_t uid, __gid32_t gid) goto done; } - DWORD attrib = 0; + mode_t attrib = 0; if (win32_path.isdir ()) attrib |= S_IFDIR; res = get_file_attribute (win32_path.has_acls (), win32_path.get_win32 (), - (int *) &attrib); + &attrib); if (!res) res = set_file_attribute (win32_path.has_acls (), win32_path, uid, gid, attrib); |