* flock.cc (inode_t::get_all_locks_list): Fix typo.

* posix.sgml: Add cfmakeraw to list of implemented BSD functions.
This commit is contained in:
Corinna Vinschen
2008-09-29 17:03:49 +00:00
parent fab8d8d808
commit e7afe579f5
3 changed files with 7 additions and 1 deletions

View File

@@ -500,7 +500,7 @@ inode_t::get_all_locks_list ()
|| ((flags & (F_FLOCK | F_POSIX)) == (F_FLOCK | F_POSIX)))
continue;
short type = wcstol (endptr + 1, &endptr, 16);
if (type != (F_RDLCK && type != F_WRLCK) || !endptr || *endptr != L'-')
if ((type != F_RDLCK && type != F_WRLCK) || !endptr || *endptr != L'-')
continue;
_off64_t start = (_off64_t) wcstoull (endptr + 1, &endptr, 16);
if (start < 0 || !endptr || *endptr != L'-')