summaryrefslogtreecommitdiff
path: root/src/systemctl
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-05-03 19:56:54 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-05-03 19:56:54 -0400
commite9dd0369e4b3fa05569521eb83ff8142e6dd9a7c (patch)
treed2a99f14d75473fea8a175614ecd076c92cdd2cc /src/systemctl
parent47838ab3250d975cf4c23819ee695ed0e9861c04 (diff)
systemctl: use GREEDY_REALLOC in one more place
Diffstat (limited to 'src/systemctl')
-rw-r--r--src/systemctl/systemctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 1905d0c05a..3cca861cf6 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -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;
}