chiark / gitweb /
tree-wide: beautify remaining copyright statements
[elogind.git] / src / test / test-copy.c
index 21cfceac2286791599904315677c0cd139157055..b893c49963738c27571fcd86e0a47b91d307254c 100644 (file)
@@ -1,8 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 /***
-  This file is part of systemd
-
-  Copyright 2014 Ronny Chevalier
+  Copyright © 2014 Ronny Chevalier
 ***/
 
 #include <unistd.h>
@@ -118,8 +116,8 @@ static void test_copy_tree(void) {
         assert_se(copy_tree(original_dir, copy_dir, UID_INVALID, GID_INVALID, COPY_REFLINK|COPY_MERGE) == 0);
 
         STRV_FOREACH(p, files) {
-                _cleanup_free_ char *buf = NULL, *f;
-                size_t sz = 0;
+                _cleanup_free_ char *buf, *f;
+                size_t sz;
 
                 assert_se(f = strappend(copy_dir, *p));
 
@@ -129,7 +127,7 @@ static void test_copy_tree(void) {
         }
 
         STRV_FOREACH_PAIR(link, p, links) {
-                _cleanup_free_ char *target = NULL, *f, *l;
+                _cleanup_free_ char *target, *f, *l;
 
                 assert_se(f = strjoin(original_dir, *p));
                 assert_se(l = strjoin(copy_dir, *link));
@@ -243,6 +241,7 @@ static void test_copy_bytes_regular_file(const char *src, bool try_reflink, uint
 }
 
 int main(int argc, char *argv[]) {
+
 #if 0 /// UNNEEDED by elogind
         test_copy_file();
         test_copy_file_fd();