]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Add comma in structured initialization in a few places
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 9 Feb 2021 15:32:55 +0000 (16:32 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 10 Feb 2021 13:43:10 +0000 (14:43 +0100)
It just looks nicer…

src/journal-remote/journal-upload.c
src/libsystemd/sd-bus/test-bus-error.c
src/update-utmp/update-utmp.c

index 455a6c942ef1f9b90c668c1c5f0f78526a2bf071..4d6041e911ae32f6b2bc8ecfa017992a83274426 100644 (file)
@@ -413,7 +413,7 @@ static int setup_uploader(Uploader *u, const char *url, const char *state_file)
         assert(url);
 
         *u = (Uploader) {
-                .input = -1
+                .input = -1,
         };
 
         host = STARTSWITH_SET(url, "http://", "https://");
index 958884d56ffd1ba16e47ff5ec2ae308c7e1ae282..84728e4e8459502a6ee038b8200b4628284b34d1 100644 (file)
@@ -15,7 +15,7 @@ static void test_error(void) {
         const sd_bus_error temporarily_const_error = {
                 .name = SD_BUS_ERROR_ACCESS_DENIED,
                 .message = "oh! no",
-                ._need_free = -1
+                ._need_free = -1,
         };
 
         assert_se(!sd_bus_error_is_set(&error));
index 1ec9066d345b876b03506fe9b91302f2b6f723ef..38df4cddf085eaee6b732b8329161d7b10151997 100644 (file)
@@ -215,7 +215,7 @@ static int on_runlevel(Context *c) {
 static int run(int argc, char *argv[]) {
         _cleanup_(context_clear) Context c = {
 #if HAVE_AUDIT
-                .audit_fd = -1
+                .audit_fd = -1,
 #endif
         };
         int r;