From: Tobias Stoeckmann Date: Sat, 24 May 2025 10:35:36 +0000 (+0200) Subject: archive_match: Fix whitespaces, style X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2633%2Fhead;p=thirdparty%2Flibarchive.git archive_match: Fix whitespaces, style Adjust whitespaces to match file layout and add a full stop to a comment to match others. Signed-off-by: Tobias Stoeckmann --- diff --git a/libarchive/archive_match.c b/libarchive/archive_match.c index 2215f9a0c..51a0e3fd5 100644 --- a/libarchive/archive_match.c +++ b/libarchive/archive_match.c @@ -656,7 +656,7 @@ add_pattern_from_file(struct archive_match *a, struct match_list *mlist, break; } } else { - if (*b == 0x0d || *b == 0x0a) { + if (*b == 0x0d || *b == 0x0a) { found_separator = 1; break; } @@ -741,7 +741,7 @@ path_excluded(struct archive_match *a, int mbs, const void *pathname) } } - /* Exclusions take priority */ + /* Exclusions take priority. */ for (match = a->exclusions.first; match != NULL; match = match->next){ r = match_path_exclusion(a, match, mbs, pathname); @@ -1296,7 +1296,7 @@ cmp_node_mbs(const struct archive_rb_node *n1, return (-1); return (strcmp(p1, p2)); } - + static int cmp_key_mbs(const struct archive_rb_node *n, const void *key) { @@ -1325,7 +1325,7 @@ cmp_node_wcs(const struct archive_rb_node *n1, return (-1); return (wcscmp(p1, p2)); } - + static int cmp_key_wcs(const struct archive_rb_node *n, const void *key) {