hal: Branch 'master'
Danny Kukawka
dkukawka at kemper.freedesktop.org
Thu Mar 6 12:12:40 PST 2008
hald/linux/addons/addon-storage.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit e35f5f6db79d7953b2155a1120ee7a2e5114d4d1
Author: Danny Kukawka <danny.kukawka at web.de>
Date: Thu Mar 6 21:12:23 2008 +0100
fixed compiler warning from sparse/gcc
Fixed compiler warning from sparse/gcc about:
- non-ANSI function declaration
- mixing declarations and code
diff --git a/hald/linux/addons/addon-storage.c b/hald/linux/addons/addon-storage.c
index d88cc43..ee78b2f 100644
--- a/hald/linux/addons/addon-storage.c
+++ b/hald/linux/addons/addon-storage.c
@@ -389,7 +389,7 @@ skip_check:
/* returns: whether the state changed */
static gboolean
-poll_for_media_force ()
+poll_for_media_force (void)
{
int fd;
int got_media;
@@ -687,6 +687,8 @@ int
main (int argc, char *argv[])
{
DBusError error;
+ LibHalContext *ctx_direct;
+ DBusConnection *con_direct;
char *bus;
char *drive_type;
char *support_media_changed_str;
@@ -726,8 +728,6 @@ main (int argc, char *argv[])
dbus_connection_setup_with_g_main (con, NULL);
dbus_connection_set_exit_on_disconnect (con, 0);
- LibHalContext *ctx_direct;
- DBusConnection *con_direct;
dbus_error_init (&error);
if ((ctx_direct = libhal_ctx_init_direct (&error)) == NULL) {
HAL_ERROR (("Cannot connect to hald"));
More information about the hal-commit
mailing list