chiark / gitweb /
journal-upload: Remove compilation warning
[elogind.git] / src / journal-remote / journal-upload.c
index bdeeff67788363d65a16e38fcab7094c08c026be..e16204484e2a40e436ead0e5fa15f46ef957395e 100644 (file)
@@ -191,7 +191,7 @@ int start_upload(Uploader *u,
                 easy_setopt(curl, CURLOPT_POST, 1L,
                             LOG_ERR, return -EXFULL);
 
                 easy_setopt(curl, CURLOPT_POST, 1L,
                             LOG_ERR, return -EXFULL);
 
-                easy_setopt(curl, CURLOPT_ERRORBUFFER, &u->error,
+                easy_setopt(curl, CURLOPT_ERRORBUFFER, u->error,
                             LOG_ERR, return -EXFULL);
 
                 /* set where to write to */
                             LOG_ERR, return -EXFULL);
 
                 /* set where to write to */
@@ -818,7 +818,10 @@ int main(int argc, char **argv) {
         }
 
 cleanup:
         }
 
 cleanup:
-        sd_notify(false, "STATUS=Shutting down...");
+        sd_notify(false,
+                  "STOPPING=1\n"
+                  "STATUS=Shutting down...");
+
         destroy_uploader(&u);
 
 finish:
         destroy_uploader(&u);
 
 finish: