diff options
author | Dan Nicholson <dbn@endlessos.org> | 2023-02-07 14:48:15 -0700 |
---|---|---|
committer | Dan Nicholson <dbn@endlessos.org> | 2023-02-07 14:50:08 -0700 |
commit | b54f4864893e078dc496d9c479e8b2568d12659d (patch) | |
tree | 1f5ab8711c8716e10c66d7d0d00d1dc6b3914108 /src/libostree/ostree-rollsum.c | |
parent | af505336c2e95820c98fc8e32bce665d5a03c795 (diff) | |
download | ostree-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 'src/libostree/ostree-rollsum.c')
-rw-r--r-- | src/libostree/ostree-rollsum.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libostree/ostree-rollsum.c b/src/libostree/ostree-rollsum.c index 805c156c..a13688cf 100644 --- a/src/libostree/ostree-rollsum.c +++ b/src/libostree/ostree-rollsum.c @@ -49,7 +49,7 @@ rollsum_chunks_crc32 (GBytes *bytes) if (!rollsum_end) { - offset = bupsplit_find_ofs (buf + start, MIN(G_MAXINT32, remaining), &bits); + offset = bupsplit_find_ofs (buf + start, MIN(G_MAXINT32, remaining), &bits); if (offset == 0) { rollsum_end = TRUE; @@ -94,7 +94,7 @@ compare_matches (const void *app, GVariant **bvpp = (GVariant**)bpp; GVariant *b = *bvpp; guint64 a_start, b_start; - + g_variant_get_child (a, 2, "t", &a_start); g_variant_get_child (b, 2, "t", &b_start); @@ -165,7 +165,7 @@ _ostree_compute_rollsum_matches (GBytes *from, /* Same crc32 but different length, skip it. */ if (to_offset != from_offset) continue; - + /* Rsync uses a cryptographic checksum, but let's be * very conservative here and just memcmp. */ @@ -176,7 +176,7 @@ _ostree_compute_rollsum_matches (GBytes *from, ret_rollsum->match_size += to_offset; g_ptr_array_add (matches, g_variant_ref_sink (match)); break; /* Don't need any more matches */ - } + } } } } |