Cleaned code


			
			
				N2009_11_14_FIXES
			
			
		
jpandre 2007-10-09 07:37:07 +00:00
parent 2e35668e86
commit 8a210f7776
2 changed files with 7 additions and 5 deletions

View File

@ -115,7 +115,7 @@ static int ntfs_icx_ib_write(ntfs_index_context *icx)
* Return NULL if allocation failed.
*/
ntfs_index_context *ntfs_index_ctx_get(ntfs_inode *ni,
ntfschar *name, u32 name_len)
const ntfschar *name, u32 name_len)
{
ntfs_index_context *icx;
@ -426,7 +426,7 @@ static int ntfs_ia_check(ntfs_index_context *icx, INDEX_BLOCK *ib, VCN vcn)
}
/* static JPA removed for use in security.c */
INDEX_ROOT *ntfs_ir_lookup(ntfs_inode *ni, ntfschar *name,
INDEX_ROOT *ntfs_ir_lookup(ntfs_inode *ni, const ntfschar *name,
u32 name_len, ntfs_attr_search_ctx **ctx)
{
ATTR_RECORD *a;
@ -458,7 +458,8 @@ err_out:
return ir;
}
static INDEX_ROOT *ntfs_ir_lookup2(ntfs_inode *ni, ntfschar *name, u32 len)
static INDEX_ROOT *ntfs_ir_lookup2(ntfs_inode *ni, const ntfschar *name,
u32 len)
{
ntfs_attr_search_ctx *ctx;
INDEX_ROOT *ir;

View File

@ -422,7 +422,8 @@ ntfs_inode *ntfs_extent_inode_open(ntfs_inode *base_ni, const MFT_REF mref)
ni->mrec->sequence_number)) {
errno = EIO;
ntfs_log_perror("Found stale extent mft "
"reference mft=%lld", ni->mft_no);
"reference mft=%lld",
(long long)ni->mft_no);
return NULL;
}
return ni;
@ -605,7 +606,7 @@ static int ntfs_inode_sync_file_name(ntfs_inode *ni)
if (!err)
err = errno;
ntfs_log_perror("Failed to open inode %lld with index",
le64_to_cpu(fn->parent_directory));
(long long)le64_to_cpu(fn->parent_directory));
continue;
}
ictx = ntfs_index_ctx_get(index_ni, NTFS_INDEX_I30, 4);