chiark / gitweb /
systemctl: use GREEDY_REALLOC in one more place
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 3 May 2013 23:56:54 +0000 (19:56 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 3 May 2013 23:56:54 +0000 (19:56 -0400)
src/systemctl/systemctl.c

index 1905d0c..3cca861 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;
                 }