diff options
author | Jan Rybar <jrybar@redhat.com> | 2019-03-26 09:58:39 +0000 |
---|---|---|
committer | Jan Rybar <jrybar@redhat.com> | 2019-03-26 09:58:39 +0000 |
commit | 2d4c4af6f34eed51b18b20324ad40db79639a6e6 (patch) | |
tree | e2085eaad136c793dece756445cf1453695610e4 | |
parent | 90a1a8496a7fb49b8d98be0788749c4f4b16ad44 (diff) | |
parent | 92581a287fbbd9470892896334be31a35d9221e6 (diff) | |
download | polkit-2d4c4af6f34eed51b18b20324ad40db79639a6e6.tar.gz |
Merge branch 'lint-unused-var-polish' into 'master'
Code polish and removal of unused var reported by lint
See merge request polkit/polkit!27
-rw-r--r-- | src/polkitbackend/polkitbackendinteractiveauthority.c | 4 |
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; } |