summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Rybar <jrybar@redhat.com>2019-03-26 09:58:39 +0000
committerJan Rybar <jrybar@redhat.com>2019-03-26 09:58:39 +0000
commit92581a287fbbd9470892896334be31a35d9221e6 (patch)
treee2085eaad136c793dece756445cf1453695610e4 /src
parent90a1a8496a7fb49b8d98be0788749c4f4b16ad44 (diff)
downloadpolkit-92581a287fbbd9470892896334be31a35d9221e6.tar.gz
Code polish and removal of unused var reported by lint
Diffstat (limited to 'src')
-rw-r--r--src/polkitbackend/polkitbackendinteractiveauthority.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/polkitbackend/polkitbackendinteractiveauthority.c b/src/polkitbackend/polkitbackendinteractiveauthority.c
index 80e8141..056d9a8 100644
--- a/src/polkitbackend/polkitbackendinteractiveauthority.c
+++ b/src/polkitbackend/polkitbackendinteractiveauthority.c
@@ -3043,9 +3043,7 @@ subject_equal_for_authz (PolkitSubject *a,
* pid reuse by including the UID.
*/
if (POLKIT_IS_UNIX_PROCESS (a) && POLKIT_IS_UNIX_PROCESS (b)) {
- PolkitUnixProcess *ap = (PolkitUnixProcess*)a;
int uid_a = polkit_unix_process_get_uid ((PolkitUnixProcess*)a);
- PolkitUnixProcess *bp = (PolkitUnixProcess*)b;
int uid_b = polkit_unix_process_get_uid ((PolkitUnixProcess*)b);
if (uid_a != -1 && uid_b != -1)
@@ -3057,7 +3055,7 @@ subject_equal_for_authz (PolkitSubject *a,
else
{
g_printerr ("denying slowfork; pid %d uid %d != %d!\n",
- polkit_unix_process_get_pid (ap),
+ polkit_unix_process_get_pid ((PolkitUnixProcess*)a),
uid_a, uid_b);
return FALSE;
}