From: Zbigniew Jędrzejewski-Szmek Date: Tue, 8 Mar 2022 15:43:43 +0000 (+0100) Subject: shared/install: adjust comment formatting X-Git-Tag: v251-rc1~111 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f5c24857b8206a53f05e151e690ff599c481b16;p=thirdparty%2Fsystemd.git shared/install: adjust comment formatting --- diff --git a/src/shared/install.c b/src/shared/install.c index f614e6fcfa1..11240f206cd 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -450,12 +450,11 @@ static int create_symlink( if (rp) old_path = rp; - /* Actually create a symlink, and remember that we did. Is - * smart enough to check if there's already a valid symlink in - * place. + /* Actually create a symlink, and remember that we did. This function is + * smart enough to check if there's already a valid symlink in place. * - * Returns 1 if a symlink was created or already exists and points to - * the right place, or negative on error. + * Returns 1 if a symlink was created or already exists and points to the + * right place, or negative on error. */ (void) mkdir_parents_label(new_path, 0755); @@ -1551,8 +1550,7 @@ static int install_info_follow( if (!i->symlink_target) return -EINVAL; - /* If the basename doesn't match, the caller should add a - * complete new entry for this. */ + /* If the basename doesn't match, the caller should add a complete new entry for this. */ if (!ignore_different_name && !streq(basename(i->symlink_target), i->name)) return -EXDEV; @@ -1607,9 +1605,7 @@ static int install_info_traverse( _cleanup_free_ char *buffer = NULL; const char *bn; - /* Target has a different name, create a new - * install info object for that, and continue - * with that. */ + /* Target is an alias, create a new install info object and continue with that. */ bn = basename(i->symlink_target); @@ -1628,8 +1624,8 @@ static int install_info_traverse( if (streq(buffer, i->name)) { - /* We filled in the instance, and the target stayed the same? If so, then let's - * honour the link as it is. */ + /* We filled in the instance, and the target stayed the same? If so, + * then let's honour the link as it is. */ r = install_info_follow(c, i, lp, flags, true); if (r < 0)