]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-event: tweak comments
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 8 May 2021 09:40:47 +0000 (11:40 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 12 May 2021 10:05:21 +0000 (12:05 +0200)
src/libsystemd/sd-event/sd-event.c

index 172be4e07e855c6f4b8b258ea599b020ed172852..9fba09ba280a58981685bfa6ccaf3b7d783a7b86 100644 (file)
@@ -3462,11 +3462,11 @@ static int source_dispatch(sd_event_source *s) {
          * invalidate the event. */
         saved_type = s->type;
 
-        /* Similar, store a reference to the event loop object, so that we can still access it after the
+        /* Similarly, store a reference to the event loop object, so that we can still access it after the
          * callback might have invalidated/disconnected the event source. */
         saved_event = sd_event_ref(s->event);
 
-        /* Check if we hit the ratelimit for this event source, if so, let's disable it. */
+        /* Check if we hit the ratelimit for this event source, and if so, let's disable it. */
         assert(!s->ratelimited);
         if (!ratelimit_below(&s->rate_limit)) {
                 r = event_source_enter_ratelimited(s);
@@ -3485,8 +3485,7 @@ static int source_dispatch(sd_event_source *s) {
         if (s->type != SOURCE_POST) {
                 sd_event_source *z;
 
-                /* If we execute a non-post source, let's mark all
-                 * post sources as pending */
+                /* If we execute a non-post source, let's mark all post sources as pending. */
 
                 SET_FOREACH(z, s->event->post_sources) {
                         if (event_source_is_offline(z))