projects
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee95d56
)
polkit: use structured initialization
author
Lennart Poettering
<lennart@poettering.net>
Wed, 22 Jan 2020 15:53:59 +0000
(16:53 +0100)
committer
Michael Biebl
<biebl@debian.org>
Mon, 27 Apr 2020 17:02:57 +0000
(18:02 +0100)
(cherry picked from commit
f4425c72c7395ec93ae00052916a66e2f60f200b
)
(cherry picked from commit
5926f9f1723fd753a0c524ed96a13538c851395e
)
(cherry picked from commit
4d80c8f158333117dabb0e6f7592059cddb1d6d0
)
(cherry picked from commit
9131bb3d45e6384309eea42affd1aa757ef28cd7
)
Gbp-Pq: Name polkit-use-structured-initialization.patch
src/shared/bus-polkit.c
patch
|
blob
|
history
diff --git
a/src/shared/bus-polkit.c
b/src/shared/bus-polkit.c
index 6343dd66aa0eb4330d7a0e1a50b5bfc718ea2658..c42c39afea54a33078a369f3fea04378a1ee14f0 100644
(file)
--- a/
src/shared/bus-polkit.c
+++ b/
src/shared/bus-polkit.c
@@
-343,13
+343,15
@@
int bus_verify_polkit_async(
if (r < 0)
return r;
- q = new
0
(AsyncPolkitQuery, 1);
+ q = new(AsyncPolkitQuery, 1);
if (!q)
return -ENOMEM;
- q->request = sd_bus_message_ref(call);
- q->callback = callback;
- q->userdata = userdata;
+ *q = (AsyncPolkitQuery) {
+ .request = sd_bus_message_ref(call),
+ .callback = callback,
+ .userdata = userdata,
+ };
q->action = strdup(action);
if (!q->action) {