]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
archive_match: Fix whitespaces, style 2633/head
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 24 May 2025 10:35:36 +0000 (12:35 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 24 May 2025 10:37:44 +0000 (12:37 +0200)
Adjust whitespaces to match file layout and add a full stop to
a comment to match others.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
libarchive/archive_match.c

index 2215f9a0c77a2602362b169087e9591d60245a80..51a0e3fd57789e63cd3cd570bc73838555d8fa99 100644 (file)
@@ -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)
 {