[PATCH] udisks: Avoid deprecated polkit_authority_get() function

Marti Raudsepp marti at juffo.org
Wed Oct 20 11:33:49 PDT 2010


Apparently the polkit_authority_get() function was deprecated in some
recent PolicyKit release:

  CC     udisks_daemon-daemon.o
cc1: warnings being treated as errors
daemon.c: In function ‘register_disks_daemon’:
daemon.c:1797:3: error: ‘polkit_authority_get’ is deprecated (declared
at /usr/include/polkit-1/polkit/polkitauthority.h:50): Use
polkit_authority_get_sync instead

This patch changes that call to use polkit_authority_get_sync() instead.

It builds and works for me, but since I haven't done much Gnome
development before, it should be thoroughly scrutinized.

(Is it OK to attach patches instead of posting them inline? I have
been spoilt by Gmail)

Regards,
Marti
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-udisks-Avoid-deprecated-polkit_authority_get-functio.patch
Type: text/x-patch
Size: 1128 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/devkit-devel/attachments/20101020/6d7df8c6/attachment.bin>


More information about the devkit-devel mailing list