]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared: add some minor comments
authorLennart Poettering <lennart@poettering.net>
Mon, 1 Apr 2019 16:41:19 +0000 (18:41 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 1 Apr 2019 20:34:53 +0000 (05:34 +0900)
src/shared/bus-wait-for-jobs.c

index 2f2b0a55526fbd6f516fe4160080f0584576b375..4e6b862d5efef71219552d6eaf1bcf262ee21e96 100644 (file)
 
 typedef struct BusWaitForJobs {
         sd_bus *bus;
 
 typedef struct BusWaitForJobs {
         sd_bus *bus;
+
+        /* The set of jobs to wait for, as bus object paths */
         Set *jobs;
 
         Set *jobs;
 
+        /* The unit name and job result of the last Job message */
         char *name;
         char *result;
 
         char *name;
         char *result;
 
@@ -52,6 +55,7 @@ static int match_job_removed(sd_bus_message *m, void *userdata, sd_bus_error *er
         free(found);
 
         (void) free_and_strdup(&d->result, empty_to_null(result));
         free(found);
 
         (void) free_and_strdup(&d->result, empty_to_null(result));
+
         (void) free_and_strdup(&d->name, empty_to_null(unit));
 
         return 0;
         (void) free_and_strdup(&d->name, empty_to_null(unit));
 
         return 0;