From a805425af32b8277958af71f10dc9f96fd4c694a Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Thu, 3 Sep 2015 12:52:19 +0200 Subject: Remove trailing whitespaces. --- metaentry.c | 8 ++++---- metastore.c | 6 +++--- utils.h | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/metaentry.c b/metaentry.c index 3df000f..2064f29 100644 --- a/metaentry.c +++ b/metaentry.c @@ -218,7 +218,7 @@ mentry_create(const char *path) /* symlinks have no xattrs */ if (S_ISLNK(mentry->mode)) return mentry; - + lsize = listxattr(path, NULL, 0); if (lsize < 0) { /* Perhaps the FS doesn't support xattrs? */ @@ -372,7 +372,7 @@ mentries_recurse_path(const char *opath, struct metahash **mhash, msettings *st) } /* Stores metaentries to a file */ -void +void mentries_tofile(const struct metahash *mhash, const char *path) { FILE *to; @@ -390,7 +390,7 @@ mentries_tofile(const struct metahash *mhash, const char *path) write_binary_string(SIGNATURE, SIGNATURELEN, to); write_binary_string(VERSION, VERSIONLEN, to); - for (key = 0; key < HASH_INDEXES; key++) { + for (key = 0; key < HASH_INDEXES; key++) { for (mentry = mhash->bucket[key]; mentry; mentry = mentry->next) { write_string(mentry->path, to); write_string(mentry->owner, to); @@ -500,7 +500,7 @@ mentries_fromfile(struct metahash **mhash, const char *path) mentry->xattr_lvalues[i] = (int)read_int(&ptr, 4, max); mentry->xattr_values[i] = - read_binary_string(&ptr, + read_binary_string(&ptr, mentry->xattr_lvalues[i], max); } diff --git a/metastore.c b/metastore.c index 00676ae..a4b4a7f 100644 --- a/metastore.c +++ b/metastore.c @@ -50,7 +50,7 @@ static struct metaentry *missingothers = NULL; static struct metaentry *extradirs = NULL; /* - * Inserts an entry in a linked list ordered by pathlen + * Inserts an entry in a linked list ordered by pathlen */ static void insert_entry_plist(struct metaentry **list, struct metaentry *entry) @@ -65,7 +65,7 @@ insert_entry_plist(struct metaentry **list, struct metaentry *entry) entry->list = *parent; *parent = entry; } - + /* * Inserts an entry in a linked list ordered by pathlen descendingly */ @@ -245,7 +245,7 @@ compare_fix(struct metaentry *real, struct metaentry *stored, int cmp) msg(MSG_NORMAL, "%s:\tadding xattr %s\n", stored->path, stored->xattr_names[i]); - if (lsetxattr(stored->path, stored->xattr_names[i], + if (lsetxattr(stored->path, stored->xattr_names[i], stored->xattr_values[i], stored->xattr_lvalues[i], XATTR_CREATE)) msg(MSG_DEBUG, "\tlsetxattr failed: %s\n", diff --git a/utils.h b/utils.h index e131d1e..2dd61c9 100644 --- a/utils.h +++ b/utils.h @@ -54,7 +54,7 @@ char *xstrdup(const char *s); /* Human-readable printout of binary data */ void binary_print(const char *s, ssize_t len); -/* Writes data to a file or exits on failure */ +/* Writes data to a file or exits on failure */ void xfwrite(const void *ptr, size_t size, FILE *stream); /* Writes an int to a file, using len bytes, in bigendian order */ -- cgit v1.2.1