From 8fa46025d5b3e03dd001c389295dd00f88a4ccf3 Mon Sep 17 00:00:00 2001 From: flatcap Date: Sun, 16 Oct 2005 19:21:47 +0000 Subject: [PATCH] trailing whitespace --- include/ntfs/layout.h | 2 +- libntfs/attrib.c | 4 ++-- libntfs/dir.c | 6 +++--- libntfs/inode.c | 2 +- libntfs/runlist.c | 2 +- ntfsprogs/utils.c | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/ntfs/layout.h b/include/ntfs/layout.h index 44608924..3e625001 100644 --- a/include/ntfs/layout.h +++ b/include/ntfs/layout.h @@ -2481,5 +2481,5 @@ typedef struct { } __attribute__ ((__packed__)) EFS_DF_CERTIFICATE_THUMBPRINT_HEADER; typedef EFS_DF_CERTIFICATE_THUMBPRINT_HEADER EFS_DF_CERT_THUMBPRINT_HEADER; - + #endif /* defined _NTFS_LAYOUT_H */ diff --git a/libntfs/attrib.c b/libntfs/attrib.c index 4578f3ad..704c7312 100644 --- a/libntfs/attrib.c +++ b/libntfs/attrib.c @@ -2271,7 +2271,7 @@ void ntfs_attr_reinit_search_ctx(ntfs_attr_search_ctx *ctx) * Note: For low level utilities which know what they are doing we allow @ni to * be NULL and @mrec to be set. Do NOT do this unless you understand the * implications!!! For example it is no longer safe to call ntfs_attr_lookup() - * if you + * if you */ ntfs_attr_search_ctx *ntfs_attr_get_search_ctx(ntfs_inode *ni, MFT_RECORD *mrec) { @@ -3013,7 +3013,7 @@ int ntfs_attr_add(ntfs_inode *ni, ATTR_TYPES type, is_resident = TRUE; /* Check if it is better to make attribute non resident. */ if (!ntfs_attr_can_be_non_resident(ni->vol, type) && - offsetof(ATTR_RECORD, resident_end) + size >= + offsetof(ATTR_RECORD, resident_end) + size >= offsetof(ATTR_RECORD, non_resident_end) + 8) /* Make it non resident. */ is_resident = FALSE; diff --git a/libntfs/dir.c b/libntfs/dir.c index f0f54c3d..3118f0ef 100644 --- a/libntfs/dir.c +++ b/libntfs/dir.c @@ -1279,7 +1279,7 @@ int ntfs_delete(ntfs_inode *ni, ntfs_inode *dir_ni, ntfschar *name, u8 name_len) search: while (!ntfs_attr_lookup(AT_FILE_NAME, AT_UNNAMED, 0, CASE_SENSITIVE, 0, NULL, 0, actx)) { - errno = 0; + errno = 0; fn = (FILE_NAME_ATTR*)((u8*)actx->attr + le16_to_cpu(actx->attr->value_offset)); if (looking_for_dos_name) { @@ -1351,7 +1351,7 @@ search: /* * If hard link count is not equal to zero then we are done. In other * case there are no reference to this inode left, so we should free all - * non-resident atributes and mark inode as not in use. + * non-resident atributes and mark inode as not in use. */ if (ni->mrec->link_count) goto out; @@ -1485,7 +1485,7 @@ int ntfs_link(ntfs_inode *ni, ntfs_inode *dir_ni, ntfschar *name, u8 name_len) ni->mrec->link_count) + 1); /* * Do not set attributes and file size, instead of this mark filenames - * dirty to force attribute and size update during sync. + * dirty to force attribute and size update during sync. * NOTE: File size may will be not updated and not all attributes will * be set, but it is acceptable since windows driver does not update * all file names when one of the hard links changed. diff --git a/libntfs/inode.c b/libntfs/inode.c index 352bc127..d91c870b 100644 --- a/libntfs/inode.c +++ b/libntfs/inode.c @@ -268,7 +268,7 @@ int ntfs_inode_close(ntfs_inode *ni) i = -1; break; } - /* + /* * ElectricFence is unhappy with realloc(x,0) as free(x) * thus we explicitly separate these two cases. */ diff --git a/libntfs/runlist.c b/libntfs/runlist.c index a6885314..058f2313 100644 --- a/libntfs/runlist.c +++ b/libntfs/runlist.c @@ -1734,7 +1734,7 @@ static void test_rl_dump_runlist (const runlist_element *rl) if (abbr) for (len = 0; rl[len].length; len++) ; - + printf(" VCN LCN len\n"); for (i = 0; ; i++, rl++) { LCN lcn = rl->lcn; diff --git a/ntfsprogs/utils.c b/ntfsprogs/utils.c index 5bfbd15a..3c87829b 100644 --- a/ntfsprogs/utils.c +++ b/ntfsprogs/utils.c @@ -986,7 +986,7 @@ int mft_next_record (struct mft_search_ctx *ctx) ntfs_attr_close(mft); return -1; } - + ntfs_attr_close(mft); }