summaryrefslogtreecommitdiffstats
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-05-04 01:56:54 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-05-04 01:56:54 +0200
commite9dd0369e4b3fa05569521eb83ff8142e6dd9a7c (patch)
treed2a99f14d75473fea8a175614ecd076c92cdd2cc /src/systemctl/systemctl.c
parentjournal: as a µ-opt, use sizeof instead of strlen (diff)
downloadsystemd-e9dd0369e4b3fa05569521eb83ff8142e6dd9a7c.tar.xz
systemd-e9dd0369e4b3fa05569521eb83ff8142e6dd9a7c.zip
systemctl: use GREEDY_REALLOC in one more place
Diffstat (limited to '')
-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;
}