summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDanny Kukawka <danny.kukawka@web.de>2007-04-10 12:33:08 +0200
committerDanny Kukawka <danny.kukawka@web.de>2007-04-10 12:33:08 +0200
commit7f3217196c67ec495796700a2d062242344e8b26 (patch)
treedc8fb16b62b97f9d87bc8a4d8ff738d0a22ea19e /tools
parent8b320279cfb6a8ce96fcf5f271f7280c825b30a9 (diff)
fix build without policykit enabled/available
Fixed build without policykit enabled/available. Added some ifdef's.
Diffstat (limited to 'tools')
-rw-r--r--tools/hal-storage-shared.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/hal-storage-shared.c b/tools/hal-storage-shared.c
index 64ffa15a..88eb71af 100644
--- a/tools/hal-storage-shared.c
+++ b/tools/hal-storage-shared.c
@@ -439,7 +439,7 @@ line_found:
libhal_free_string (polkit_result);
}
#else
- permission_denied_privilege (privilege, "no");
+ permission_denied_privilege (action, "no");
#endif
}
@@ -548,7 +548,9 @@ handle_eject (LibHalContext *hal_ctx,
int na;
int fd;
int num_excl_tries;
+#ifdef HAVE_POLKIT
DBusError error;
+#endif
/* When called here all the file systems from this device is
* already unmounted. That's actually guaranteed; see