]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
timesyncd: rebreak some comments
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Mar 2022 14:27:20 +0000 (15:27 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Mar 2022 22:53:20 +0000 (23:53 +0100)
src/timesync/timesyncd-manager.c

index 6107531a3b1c62a7340b1e4fa92e85f62e280848..60be465caa938f9c1aadba0bff68199710a4052e 100644 (file)
@@ -249,10 +249,8 @@ static int manager_adjust_clock(Manager *m, double offset, int leap_sec) {
 
         assert(m);
 
-        /*
-         * For small deltas, tell the kernel to gradually adjust the system
-         * clock to the NTP time, larger deltas are just directly set.
-         */
+        /* For small deltas, tell the kernel to gradually adjust the system clock to the NTP time, larger
+         * deltas are just directly set. */
         if (fabs(offset) < NTP_MAX_ADJUST) {
                 tmx = (struct timex) {
                         .modes = ADJ_STATUS | ADJ_NANO | ADJ_OFFSET | ADJ_TIMECONST | ADJ_MAXERROR | ADJ_ESTERROR,
@@ -281,14 +279,11 @@ static int manager_adjust_clock(Manager *m, double offset, int leap_sec) {
                 log_debug("  adjust (jump): %+.3f sec", offset);
         }
 
-        /*
-         * An unset STA_UNSYNC will enable the kernel's 11-minute mode,
-         * which syncs the system time periodically to the RTC.
+        /* An unset STA_UNSYNC will enable the kernel's 11-minute mode, which syncs the system time
+         * periodically to the RTC.
          *
-         * In case the RTC runs in local time, never touch the RTC,
-         * we have no way to properly handle daylight saving changes and
-         * mobile devices moving between time zones.
-         */
+         * In case the RTC runs in local time, never touch the RTC, we have no way to properly handle
+         * daylight saving changes and mobile devices moving between time zones. */
         if (m->rtc_local_time)
                 tmx.status |= STA_UNSYNC;