chiark / gitweb /
systemctl: use GREEDY_REALLOC in one more place
[elogind.git] / src / systemctl / systemctl.c
index 1905d0c05aa52e0f0434db1677b2f22bbf68312f..3cca861cf69a35e3614b84cad8b95a481486e1c2 100644 (file)
@@ -1295,8 +1295,7 @@ static int list_jobs(DBusConnection *bus, char **args) {
                         goto finish;
                 }
 
-                if (!greedy_realloc((void**) &jobs, &size,
-                                    sizeof(struct job_info) * (used + 1))) {
+                if (!GREEDY_REALLOC(jobs, size, used + 1)) {
                         r = log_oom();
                         goto finish;
                 }