diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2007-11-15 06:04:21 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2007-11-15 06:04:21 +0800 |
commit | 9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91 (patch) | |
tree | 2e1e96f33404781354c422a7e9beaf458ebeb655 /plugins/ipod-sync/ipod.c | |
parent | 7e8f8bb9e5167b0219b48ab3e8062080d3740b0a (diff) | |
download | gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.gz gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.bz2 gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.lz gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.xz gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.zst gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.zip |
** Remove trailing whitespace from source code.
2007-11-14 Matthew Barnes <mbarnes@redhat.com>
** Remove trailing whitespace from source code.
svn path=/trunk/; revision=34537
Diffstat (limited to 'plugins/ipod-sync/ipod.c')
-rw-r--r-- | plugins/ipod-sync/ipod.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/plugins/ipod-sync/ipod.c b/plugins/ipod-sync/ipod.c index 292d07681f..4edfd6a2dd 100644 --- a/plugins/ipod-sync/ipod.c +++ b/plugins/ipod-sync/ipod.c @@ -23,7 +23,7 @@ check_hal (void) char **devices; int num; DBusConnection *conn; - + conn = dbus_bus_get (DBUS_BUS_SYSTEM, NULL); ctx = libhal_ctx_new (); @@ -105,7 +105,7 @@ static gboolean is_ipod (char *mount_point) { gboolean ret = FALSE; - + char *itunes_path; itunes_path = g_build_path (G_DIR_SEPARATOR_S, mount_point, @@ -114,7 +114,7 @@ is_ipod (char *mount_point) if (!g_file_test (itunes_path, G_FILE_TEST_IS_DIR)) goto out; - + ret = TRUE; out: @@ -147,7 +147,7 @@ find_ipod_mount_point (LibHalContext *ctx) for (i = 0; i < apple_count; i++) { udi = apple_devices[i]; - + volumes = NULL; volumes = libhal_manager_find_device_string_match (ctx, "info.parent", @@ -161,7 +161,7 @@ find_ipod_mount_point (LibHalContext *ctx) /* Only interested if it has a filesystem. */ has_fs = 0; - + if (!libhal_device_property_exists (ctx, udi2, "volume.is_filesystem", NULL) || !libhal_device_get_property_bool (ctx, udi2, @@ -169,7 +169,7 @@ find_ipod_mount_point (LibHalContext *ctx) { has_fs = 1; } - + fsusage = libhal_device_get_property_string (ctx, udi2, "volume.fsusage", NULL); @@ -185,7 +185,7 @@ find_ipod_mount_point (LibHalContext *ctx) if (has_fs == 0) continue; - + device = libhal_device_get_property_string (ctx, udi2, "block.device", NULL); @@ -198,7 +198,7 @@ find_ipod_mount_point (LibHalContext *ctx) /* It isn't, so let's attempt to mount it */ if (device != NULL) { - try_mount (device); + try_mount (device); } } @@ -210,10 +210,10 @@ find_ipod_mount_point (LibHalContext *ctx) } libhal_free_string (device); - + mount_point = libhal_device_get_property_string (ctx, udi2, "volume.mount_point", NULL); - + if (is_ipod (mount_point)) { goto out; @@ -227,15 +227,15 @@ find_ipod_mount_point (LibHalContext *ctx) out: if (volumes != NULL) libhal_free_string_array (volumes); - + if (apple_devices != NULL) libhal_free_string_array (apple_devices); - + if (mount_point != NULL) { retval = g_strdup (mount_point); libhal_free_string (mount_point); } - + return (retval); } |