summaryrefslogtreecommitdiff
path: root/tests/test-repo.c
diff options
context:
space:
mode:
authorDan Nicholson <dbn@endlessos.org>2023-02-07 14:48:15 -0700
committerDan Nicholson <dbn@endlessos.org>2023-02-07 14:50:08 -0700
commitb54f4864893e078dc496d9c479e8b2568d12659d (patch)
tree1f5ab8711c8716e10c66d7d0d00d1dc6b3914108 /tests/test-repo.c
parentaf505336c2e95820c98fc8e32bce665d5a03c795 (diff)
downloadostree-b54f4864893e078dc496d9c479e8b2568d12659d.tar.gz
Strip trailing whitespace on all C files
My editor started following the configuration in .editorconfig and is applying this rule to many files I'm editing. Let's just get this over with and strip everything. This was done like so: git ls-files | grep '\.[ch]$' | xargs sed -ri 's/\s+$//'
Diffstat (limited to 'tests/test-repo.c')
-rw-r--r--tests/test-repo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-repo.c b/tests/test-repo.c
index 4a7a44a0..b8365ea9 100644
--- a/tests/test-repo.c
+++ b/tests/test-repo.c
@@ -245,13 +245,13 @@ test_write_regfile_api (Fixture *fixture,
g_clear_pointer (&checksum, g_free);
// Invalid checksum
- checksum = ostree_repo_write_regfile_inline (repo, "3272139f889f6a7007b3d64adc74be9e2979bf6bbe663d1512e5bd43f4de24a1",
+ checksum = ostree_repo_write_regfile_inline (repo, "3272139f889f6a7007b3d64adc74be9e2979bf6bbe663d1512e5bd43f4de24a1",
0, 0, S_IFREG | 0644, NULL, (const guint8*)contents, sizeof (contents)-1, NULL, &error);
g_assert (checksum == NULL);
g_assert (error != NULL);
g_clear_error (&error);
-
- // Now with xattrs
+
+ // Now with xattrs
g_clear_pointer (&checksum, g_free);
checksum = ostree_repo_write_regfile_inline (repo, NULL, 0, 0, S_IFREG | 0644, xattrs, (const guint8*)contents, sizeof (contents)-1, NULL, &error);
g_assert_no_error (error);