ntfs: Fix several warnings

This commit is contained in:
Gerasim Troeglazov
2013-12-04 12:45:28 +00:00
parent da0906f232
commit 0d4e157ba4
3 changed files with 5 additions and 2 deletions
@@ -88,6 +88,8 @@ extern int ntfs_delete(ntfs_volume *vol, const char *path,
extern int ntfs_link(ntfs_inode *ni, ntfs_inode *dir_ni, const ntfschar *name,
u8 name_len);
extern MFT_REF ntfs_mft_get_parent_ref(ntfs_inode *ni);
/*
* File types (adapted from include <linux/fs.h>)
*/
@@ -276,7 +276,6 @@ static const char * ntfs_log_get_prefix(u32 level)
return prefix;
}
#endif //__HAIKU___
/**
* ntfs_log_set_handler - Provide an alternate logging handler
@@ -296,6 +295,7 @@ void ntfs_log_set_handler(ntfs_log_handler *handler)
} else
ntfs_log.handler = ntfs_log_handler_null;
}
#endif //__HAIKU___
/**
* ntfs_log_redirect - Pass on the request to the real handler
@@ -1112,7 +1112,7 @@ static int upgrade_secur_desc(ntfs_volume *vol,
* Should not be called for user root, however the group may be root
*
*/
#ifndef __HAIKU__
static BOOL staticgroupmember(struct SECURITY_CONTEXT *scx, uid_t uid, gid_t gid)
{
BOOL ingroup;
@@ -1134,6 +1134,7 @@ static BOOL staticgroupmember(struct SECURITY_CONTEXT *scx, uid_t uid, gid_t gid
}
return (ingroup);
}
#endif //__HAIKU__
#if defined(__sun) && defined (__SVR4)